diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-15 12:58:23 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-15 12:58:23 -0400 |
commit | 3b3c96b9c9b78ea1afb71b30a2a6562bfb461e63 (patch) | |
tree | 1a6310e8da14b341c115c15b2cbac3cfa1ec8711 | |
parent | 6074369de8b4406f4c3dec2e136cb5282d628810 (diff) |
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 <ian@osmora.org>
-rw-r--r-- | src/sys/os/vfs_namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |