]> git.saurik.com Git - cydia.git/commitdiff
Skip dirents that have zeroed out (deleted) inodes.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 26 Oct 2014 07:15:41 +0000 (00:15 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 26 Oct 2014 07:15:41 +0000 (00:15 -0700)
setnsfpn.cpp

index d51e2e9d6b0dc2e7512e297de44a0ebee049c299..9fe555c0d5098dc2571077e89e025ecfc3006ced 100644 (file)
@@ -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 {