]> git.saurik.com Git - cydia.git/commitdiff
Further complicate previous bug.:
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 22 Jun 2009 13:52:05 +0000 (13:52 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:13:57 +0000 (07:13 +0000)
Cydia.mm

index 40c83bdc84d40e63cc7639915ebb6b5259e64a2f..4264ef47ceecff44bd9ffb024b7632e8b5aa8c20 100644 (file)
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -8606,8 +8606,11 @@ int main(int argc, char *argv[]) { _pooled
     /*if (substrate && access("/Library/MobileSubstrate/MobileSubstrate.dylib", F_OK) == 0)
         dlopen("/Library/MobileSubstrate/MobileSubstrate.dylib", RTLD_LAZY | RTLD_GLOBAL);*/
 
-    if (access("/User", F_OK) != 0 || access("/tmp/.cydia.fw", F_OK) == 0) {
+    if (access("/tmp/.cydia.fw", F_OK) == 0) {
         unlink("/tmp/.cydia.fw");
+        goto firmware;
+    } else if (access("/User", F_OK) != 0) {
+      firmware:
         _trace();
         system("/usr/libexec/cydia/firmware.sh");
         _trace();