From 3b3c96b9c9b78ea1afb71b30a2a6562bfb461e63 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 15 Oct 2025 12:58:23 -0400 Subject: kern: namei: Return -NOENT at function end If we go through the entire function without getting a vnode, then there is no file to be found Signed-off-by: Ian Moffett --- src/sys/os/vfs_namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sys/os') diff --git a/src/sys/os/vfs_namei.c b/src/sys/os/vfs_namei.c index 68f219c..e541611 100644 --- a/src/sys/os/vfs_namei.c +++ b/src/sys/os/vfs_namei.c @@ -124,5 +124,5 @@ namei(struct nameidata *ndp) i = 0; printf("namei: n %s\n", namebuf); } - return 0; + return -ENOENT; } -- cgit v1.2.3