From dd950fc996cecbd9684b980dc3aefbf32ec0a46b Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Wed, 5 Nov 2014 21:36:39 +0100 Subject: [PATCH] Add AT_EACCESS support to faccessat(2). --- kernel/io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/io.cpp b/kernel/io.cpp index 233c0e6b..6bf58789 100644 --- a/kernel/io.cpp +++ b/kernel/io.cpp @@ -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 )