mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add AT_EACCESS support to faccessat(2).
This commit is contained in:
parent
ae4534aae1
commit
dd950fc996
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ int sys_openat(int dirfd, const char* path, int flags, mode_t mode)
|
|||
// TODO: This is a hack! Stat the file in some manner and check permissions.
|
||||
int sys_faccessat(int dirfd, const char* path, int /*mode*/, int flags)
|
||||
{
|
||||
if ( flags & ~(AT_SYMLINK_NOFOLLOW) )
|
||||
if ( flags & ~(AT_SYMLINK_NOFOLLOW | AT_EACCESS) )
|
||||
return errno = EINVAL, -1;
|
||||
char* pathcopy = GetStringFromUser(path);
|
||||
if ( !pathcopy )
|
||||
|
|
Loading…
Add table
Reference in a new issue