From d5884fab8d7f0556db4d1f0635107238be82c0dc Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 30 Sep 2025 20:46:31 -0400 Subject: kern: vfs: Return vnode result in namei() Signed-off-by: Ian Moffett --- src/sys/os/vfs_namei.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3