* sysdeps/unix/sysv/linux/faccessat.c (faccessat): Try using the

syscall in more cases.
This commit is contained in:
Ulrich Drepper 2006-01-20 22:37:35 +00:00
parent 48a1d526d0
commit 7a2645e470
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2006-01-20 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/faccessat.c (faccessat): Try using the
syscall in more cases.
* io/Makefile (tests): Add tst-symlinkat, tst-linkat, and
tst-readlinkat.
* io/tst-symlinkat.c: New file.

View File

@ -45,7 +45,7 @@ faccessat (fd, file, mode, flag)
int result;
#ifdef __NR_faccessat
if (flag == 0
if ((flag == 0 || ((flag & ~AT_EACCESS) == 0 && ! __libc_enable_secure))
# ifndef __ASSUME_ATFCTS
&& __have_atfcts >= 0
# endif