From 57a2394cb4c058d761deb84cf706f9387f1a8511 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 17 Jan 2021 21:10:19 +0100 Subject: [PATCH] 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. --- Kernel/FileSystem/ProcFS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)