1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2014-11-05 21:36:39 +01:00
parent ae4534aae1
commit dd950fc996

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 )