Skip to content

Commit

Permalink
Kernel: The stat() syscall should follow symlinks.
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed May 30, 2019
1 parent 709d168 commit 0f3b5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/Process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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__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)
Expand Down

0 comments on commit 0f3b5e1

Please sign in to comment.