summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/lookup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/lookup.c b/libdiskfs/lookup.c
index 03c140be..806f5a2c 100644
--- a/libdiskfs/lookup.c
+++ b/libdiskfs/lookup.c
@@ -115,7 +115,8 @@ diskfs_lookup (struct node *dp,
|| (type == REMOVE && err != ENOENT))
{
err2 = diskfs_checkdirmod (dp, *np, cred);
- return err2;
+ if (err2)
+ return err2;
}
if ((type == LOOKUP || type == CREATE) && !err && np)