From f62cfe7101a4ded825fdca31e84daeb4b0d370c8 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 9 Apr 2024 22:45:37 -0400 Subject: kernel: vfs_lookup: Start lookup at idx 1 Signed-off-by: Ian Moffett --- sys/kern/vfs_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') 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; -- cgit v1.2.3