From 4516acc2814de7e1420109a9469600a5607eb984 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 9 Sep 2023 16:54:13 +0200 Subject: kernel: build /kdev/ on the fly --- src/kernel/vfs/mount.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/kernel/vfs') diff --git a/src/kernel/vfs/mount.c b/src/kernel/vfs/mount.c index b4f5b0f..c153c69 100644 --- a/src/kernel/vfs/mount.c +++ b/src/kernel/vfs/mount.c @@ -45,6 +45,11 @@ VfsMount *vfs_mount_resolve( break; if (path[top->prefix_len] == '/') break; + + /* Also valid if prefix ends with '/'. Can only happen with kernel- + * provided mounts. */ + if (top->prefix_len != 0 && path[top->prefix_len-1] == '/') + break; } return top; } -- cgit v1.2.3