diff options
-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 */ |