aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/util/src/unix_dir_iterator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/src/unix_dir_iterator.c b/lib/util/src/unix_dir_iterator.c
index ae878a2..3f23311 100644
--- a/lib/util/src/unix_dir_iterator.c
+++ b/lib/util/src/unix_dir_iterator.c
@@ -45,7 +45,7 @@ static int dir_read_link(dir_iterator_t *base, char **out)
return SQFS_ERROR_INTERNAL;
}
- if (S_ISLNK(it->sb.st_mode)) {
+ if (!S_ISLNK(it->sb.st_mode)) {
fprintf(stderr, "[BUG] %s is not a symlink, cannot readlink\n",
it->ent->d_name);
it->state = SQFS_ERROR_INTERNAL;