summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2020-01-15 14:06:48 +0300
committerAndreas Kling <awesomekling@gmail.com>2020-01-17 21:49:58 +0100
commit4417bd97d74fe58ebaee140ad085f145953e5ac6 (patch)
tree715e545b6153ecad288384db935c53813a75bb36 /Kernel/FileSystem/VirtualFileSystem.cpp
parent064cd2278cda21622ffae69a7263581d72fd09a6 (diff)
downloadserenity-4417bd97d74fe58ebaee140ad085f145953e5ac6.zip
Kernel: Misc tweaks
Diffstat (limited to 'Kernel/FileSystem/VirtualFileSystem.cpp')
-rw-r--r--Kernel/FileSystem/VirtualFileSystem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/FileSystem/VirtualFileSystem.cpp b/Kernel/FileSystem/VirtualFileSystem.cpp
index 56da6e9984..2ee874c5e0 100644
--- a/Kernel/FileSystem/VirtualFileSystem.cpp
+++ b/Kernel/FileSystem/VirtualFileSystem.cpp
@@ -144,6 +144,7 @@ void VFS::traverse_directory_inode(Inode& dir_inode, Function<bool(const FS::Dir
else
resolved_inode = entry.inode;
+ // FIXME: This is now broken considering chroot and bind mounts.
if (dir_inode.identifier().is_root_inode() && !is_vfs_root(dir_inode.identifier()) && !strcmp(entry.name, "..")) {
auto mount = find_mount_for_guest(entry.inode);
ASSERT(mount);