summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-30 23:19:41 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-30 23:21:01 +0200
commit0f3b5e1f023125a084e3347098a7048e7dd86a5a (patch)
tree6a213aab2da5f29ee8cf521399ed9d88f7b1903a /Kernel/Process.cpp
parent709d168807308add4616ba3fc9fe2771cb475cc5 (diff)
downloadserenity-0f3b5e1f023125a084e3347098a7048e7dd86a5a.zip
Kernel: The stat() syscall should follow symlinks.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp2
1 files changed, 1 insertions, 1 deletions
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)