summaryrefslogtreecommitdiff
path: root/src/import/aufs-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/import/aufs-util.c')
-rw-r--r--src/import/aufs-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/aufs-util.c b/src/import/aufs-util.c
index 82f519958c..b44dbb14ea 100644
--- a/src/import/aufs-util.c
+++ b/src/import/aufs-util.c
@@ -69,7 +69,7 @@ int aufs_resolve(const char *path) {
errno = 0;
r = nftw(path, nftw_cb, 64, FTW_MOUNT|FTW_PHYS|FTW_ACTIONRETVAL);
if (r == FTW_STOP)
- return errno ? -errno : -EIO;
+ return errno > 0 ? -errno : -EIO;
return 0;
}