aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-09 22:45:37 -0400
committerIan Moffett <ian@osmora.org>2024-04-09 22:45:37 -0400
commitf62cfe7101a4ded825fdca31e84daeb4b0d370c8 (patch)
tree9855174c8b7116675a3681bb0c8a15a3f3a21bd1 /sys
parent1a60078a3bdd89124f70175757838231f1871c3b (diff)
kernel: vfs_lookup: Start lookup at idx 1
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
index d2cbdf2..3153444 100644
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -155,7 +155,7 @@ vfs_path_to_node(const char *path, struct vnode **vp)
goto done;
}
- for (size_t i = 0;; ++i) {
+ for (size_t i = 1;; ++i) {
name = vfs_get_fname_at(path, i);
if (name == NULL) break;