summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/os/vfs_namei.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys/os/vfs_namei.c b/src/sys/os/vfs_namei.c
index 5c7f557..68f219c 100644
--- a/src/sys/os/vfs_namei.c
+++ b/src/sys/os/vfs_namei.c
@@ -94,6 +94,10 @@ namei(struct nameidata *ndp)
error = vops->lookup(&lookup);
if (error == 0)
return 0;
+
+ /* Return the result */
+ if (ndp->vp_res != NULL)
+ *ndp->vp_res = vp;
}
printf("namei: f: %s\n", ndp->path);