diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-25 21:22:16 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-25 21:22:16 -0400 |
commit | 51e23753f4e98ef278324e3ea13f9617fe3a7a80 (patch) | |
tree | 38750c1396c43f3fc02e638de5ca2864dd972820 /sys/kern/vfs_lookup.c | |
parent | 5096f7c858b3e3151040b27748ec59e516ac3b80 (diff) |
kernel: vfs_lookup: Return -EINVAL instead of -1
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/vfs_lookup.c')
-rw-r--r-- | sys/kern/vfs_lookup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index 1398964..d2cbdf2 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -134,9 +134,9 @@ vfs_path_to_node(const char *path, struct vnode **vp) int s = 0, fs_caps = 0; if (strcmp(path, "/") == 0 || !vfs_is_valid_path(path)) { - return -1; + return -EINVAL; } else if (*path != '/') { - return -1; + return -EINVAL; } /* Fetch filesystem capabilities if we can */ |