]> git.saurik.com Git - cydia.git/commitdiff
Stop folder if we fail to fix a subfolder or file.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 5 Nov 2014 02:12:54 +0000 (18:12 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 5 Nov 2014 02:12:54 +0000 (18:12 -0800)
setnsfpn.cpp

index 9fe555c0d5098dc2571077e89e025ecfc3006ced..b129858afa5613f77feadc8d6e39945d44b436f9 100644 (file)
@@ -123,10 +123,12 @@ static int setnsfpn(const char *path, size_t before, Recurse recurse) {
                             return -1;
 
                         case DT_DIR:
-                            setnsfpn(sub, both, RecurseYes);
+                            if (setnsfpn(sub, both, RecurseYes) != 0)
+                                return -1;
                             break;
                         case DT_REG:
-                            setnsfpn(sub, both, RecurseNo);
+                            if (setnsfpn(sub, both, RecurseNo) != 0)
+                                return -1;
                             break;
                     }
                 }