mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:55:08 +00:00
Kernel: Fix .. directory entry at mount point handling a little
It's still broken, but at least it now appears to work if the file system doesn't return the same inode for "..".
This commit is contained in:
parent
3645b9e2a6
commit
0c72a9eda7
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ void VFS::traverse_directory_inode(Inode& dir_inode, Function<bool(const FS::Dir
|
|||
// FIXME: This is now broken considering chroot and bind mounts.
|
||||
bool is_root_inode = dir_inode.identifier() == dir_inode.fs().root_inode()->identifier();
|
||||
if (is_root_inode && !is_vfs_root(dir_inode.identifier()) && !strcmp(entry.name, "..")) {
|
||||
auto mount = find_mount_for_guest(entry.inode);
|
||||
auto mount = find_mount_for_guest(dir_inode);
|
||||
ASSERT(mount);
|
||||
ASSERT(mount->host());
|
||||
resolved_inode = mount->host()->identifier();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue