From 0f3b5e1f023125a084e3347098a7048e7dd86a5a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 30 May 2019 23:19:41 +0200 Subject: [PATCH] Kernel: The stat() syscall should follow symlinks. --- Kernel/Process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 9037d9b10f..fe87e003a9 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -1066,7 +1066,7 @@ int Process::sys$stat(const char* path, stat* statbuf) { if (!validate_write_typed(statbuf)) return -EFAULT; - return VFS::the().stat(StringView(path), O_NOFOLLOW_NOERROR, current_directory(), *statbuf); + return VFS::the().stat(StringView(path), 0, current_directory(), *statbuf); } int Process::sys$readlink(const char* path, char* buffer, ssize_t size)