Add AT_EACCESS support to faccessat(2).

This commit is contained in:
Jonas 'Sortie' Termansen 2014-11-05 21:36:39 +01:00
parent ae4534aae1
commit dd950fc996
1 changed files with 1 additions and 1 deletions

View File

@ -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 )