diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-20 16:38:17 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-20 16:38:17 -0400 |
commit | d554b1ef1ce065284fcf980188e8eda1e8e7c46b (patch) | |
tree | 7412adc5382cc6e682f64d60cc8a1bf39b1450b0 | |
parent | 62c4f7d5195b3f81f4802447be2a868fb1597d72 (diff) |
kern: vfs: Return -ENOENT if image path is bad
If we encounter a filesystem of type FS_ATTR_IMAGE and the path is not
found, return -ENOENT
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | src/sys/os/vfs_namei.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/os/vfs_namei.c b/src/sys/os/vfs_namei.c index 7814181..013c0ea 100644 --- a/src/sys/os/vfs_namei.c +++ b/src/sys/os/vfs_namei.c @@ -114,6 +114,8 @@ namei(struct nameidata *ndp) if (error == 0) { return 0; } + + return -ENOENT; } |