mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
Kernel: The stat() syscall should follow symlinks.
This commit is contained in:
parent
709d168807
commit
0f3b5e1f02
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
Add a link
Reference in a new issue