summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/ProcFS.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-17 21:10:19 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-17 21:11:21 +0100
commit57a2394cb4c058d761deb84cf706f9387f1a8511 (patch)
tree1d88cbd57d4078bf6209199d2ec44d2542cd1486 /Kernel/FileSystem/ProcFS.cpp
parent1d621ab1725d1eba0fafef4575aef72682cd57ad (diff)
downloadserenity-57a2394cb4c058d761deb84cf706f9387f1a8511.zip
Kernel: Unbreak /proc/PID/root symlink
The generator callback for this file was mistakenly returning false on success, which caused the kernel to fail sys$readlink() with ENOENT.
Diffstat (limited to 'Kernel/FileSystem/ProcFS.cpp')
-rw-r--r--Kernel/FileSystem/ProcFS.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp
index ea6b9ea573..1519d65204 100644
--- a/Kernel/FileSystem/ProcFS.cpp
+++ b/Kernel/FileSystem/ProcFS.cpp
@@ -661,7 +661,7 @@ static bool procfs$pid_root(InodeIdentifier identifier, KBufferBuilder& builder)
if (!process)
return false;
builder.append_bytes(process->root_directory_relative_to_global_root().absolute_path().to_byte_buffer());
- return false;
+ return true;
}
static bool procfs$self(InodeIdentifier, KBufferBuilder& builder)