Add AT_EACCESS support to faccessat(2).
This commit is contained in:
parent
ae4534aae1
commit
dd950fc996
|
@ -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.
|
// 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)
|
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;
|
return errno = EINVAL, -1;
|
||||||
char* pathcopy = GetStringFromUser(path);
|
char* pathcopy = GetStringFromUser(path);
|
||||||
if ( !pathcopy )
|
if ( !pathcopy )
|
||||||
|
|
Loading…
Reference in New Issue