* sysdeps/unix/sysv/linux/faccessat.c (faccessat): Try using the
authorUlrich Drepper <drepper@redhat.com>
Fri, 20 Jan 2006 22:37:35 +0000 (22:37 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 20 Jan 2006 22:37:35 +0000 (22:37 +0000)
syscall in more cases.

ChangeLog
sysdeps/unix/sysv/linux/faccessat.c

index 9aaf9d27971b23ad3070b132dd1467373061208b..5a47303403470a6126f57cfbfcb88563782ff516 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 7c28280ae6c7bbdc42a6a4260b9ca665baed2227..fc8db25e0121217a92841d80dd559034238a5861 100644 (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