summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/vfs/mount.c')
-rw-r--r--src/kernel/vfs/mount.c5
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;
}