From 0c72a9eda7fe581c2cc03df6d369a15f84c0d877 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Thu, 2 Jul 2020 12:46:07 +0300 Subject: [PATCH] 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 "..". --- Kernel/FileSystem/VirtualFileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/FileSystem/VirtualFileSystem.cpp b/Kernel/FileSystem/VirtualFileSystem.cpp index 681607515cd..ef8fd319004 100644 --- a/Kernel/FileSystem/VirtualFileSystem.cpp +++ b/Kernel/FileSystem/VirtualFileSystem.cpp @@ -203,7 +203,7 @@ void VFS::traverse_directory_inode(Inode& dir_inode, Functionidentifier(); 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();