summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-10-26 00:15:41 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-10-26 00:15:41 -0700
commitf394599b3fff045298be827f5fa0361a2498d29f (patch)
treeb10314ff4eaf7c92a9cadcde2e5bf218e43d48bd
parent79e7207a7c4746a21e4762ecb1fb7d75a3628294 (diff)
Skip dirents that have zeroed out (deleted) inodes.
-rw-r--r--setnsfpn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/setnsfpn.cpp b/setnsfpn.cpp
index d51e2e9..9fe555c 100644
--- a/setnsfpn.cpp
+++ b/setnsfpn.cpp
@@ -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 {