浏览代码

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.
Andreas Kling 4 年之前
父节点
当前提交
57a2394cb4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Kernel/FileSystem/ProcFS.cpp

+ 1 - 1
Kernel/FileSystem/ProcFS.cpp

@@ -661,7 +661,7 @@ static bool procfs$pid_root(InodeIdentifier identifier, KBufferBuilder& builder)
     if (!process)
     if (!process)
         return false;
         return false;
     builder.append_bytes(process->root_directory_relative_to_global_root().absolute_path().to_byte_buffer());
     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)
 static bool procfs$self(InodeIdentifier, KBufferBuilder& builder)