summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;