summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/lookup.c b/libdiskfs/lookup.c
index 4e903f88..e2ee538c 100644
--- a/libdiskfs/lookup.c
+++ b/libdiskfs/lookup.c
@@ -113,7 +113,7 @@ diskfs_lookup (struct node *dp,
if (type == RENAME
|| (type == CREATE && err == ENOENT)
|| (type == REMOVE && err != ENOENT))
- err = diskfs_checkdirmod (dp, np, cred);
+ err = diskfs_checkdirmod (dp, *np, cred);
return err;
}