diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-17 21:10:19 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-17 21:11:21 +0100 |
commit | 57a2394cb4c058d761deb84cf706f9387f1a8511 (patch) | |
tree | 1d88cbd57d4078bf6209199d2ec44d2542cd1486 /Kernel/FileSystem/ProcFS.cpp | |
parent | 1d621ab1725d1eba0fafef4575aef72682cd57ad (diff) | |
download | serenity-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.cpp | 2 |
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) |