summaryrefslogtreecommitdiff
path: root/setnsfpn.cpp
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-11-04 18:12:54 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2014-11-04 18:12:54 -0800
commit6c4239e5a483511e5ca2f2c8be2c27b51cf50f93 (patch)
tree4b2dc808a6dc19af9d12cc18bf65afc0c9fca893 /setnsfpn.cpp
parentd212b02f931c43a5b0bb40115d842d9c6dcb633c (diff)
Stop folder if we fail to fix a subfolder or file.
Diffstat (limited to 'setnsfpn.cpp')
-rw-r--r--setnsfpn.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/setnsfpn.cpp b/setnsfpn.cpp
index 9fe555c..b129858 100644
--- a/setnsfpn.cpp
+++ b/setnsfpn.cpp
@@ -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;
}
}