X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/79e7207a7c4746a21e4762ecb1fb7d75a3628294..837b7c8801dabaec33c55494047540b6ac6ef22d:/setnsfpn.cpp diff --git a/setnsfpn.cpp b/setnsfpn.cpp index d51e2e9d..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 {{{ */ @@ -105,7 +105,7 @@ static int setnsfpn(const char *path, size_t before, Recurse recurse) { const char *name(dir->d_name); size_t after(strlen(name)); - if (false); + if (dir->d_ino == 0); else if (after == 1 && name[0] == '.'); else if (after == 2 && name[0] == '.' && name[1] == '.'); else { @@ -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; } }