Kernel: The stat() syscall should follow symlinks.
This commit is contained in:
parent
709d168807
commit
0f3b5e1f02
Notes:
sideshowbarker
2024-07-19 13:49:47 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0f3b5e1f023
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue