X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/f394599b3fff045298be827f5fa0361a2498d29f..d59938e3a2131e61f875f6eff48af5f89f57c732:/setnsfpn.cpp diff --git a/setnsfpn.cpp b/setnsfpn.cpp index 9fe555c0..5f727486 100644 --- a/setnsfpn.cpp +++ b/setnsfpn.cpp @@ -1,5 +1,5 @@ /* Cydia - iPhone UIKit Front-End for Debian APT - * Copyright (C) 2008-2014 Jay Freeman (saurik) + * Copyright (C) 2008-2015 Jay Freeman (saurik) */ /* GNU General Public License, Version 3 {{{ */ @@ -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; } }