Kernel: The stat() syscall should follow symlinks.

This commit is contained in:
Andreas Kling 2019-05-30 23:19:41 +02:00
parent 709d168807
commit 0f3b5e1f02
Notes: sideshowbarker 2024-07-19 13:49:47 +09:00

View file

@ -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)