diff options
author | dzwdz | 2023-09-09 16:54:13 +0200 |
---|---|---|
committer | dzwdz | 2023-09-09 16:54:13 +0200 |
commit | 4516acc2814de7e1420109a9469600a5607eb984 (patch) | |
tree | f528afa2d2158c1d06ee203926e8c06251642868 /src/kernel/vfs | |
parent | b7e5252ab4955039ca548d7f8216bfc432a3bd62 (diff) |
kernel: build /kdev/ on the fly
Diffstat (limited to 'src/kernel/vfs')
-rw-r--r-- | src/kernel/vfs/mount.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |