diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-01-20 22:37:35 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-01-20 22:37:35 +0000 |
commit | 7a2645e470f1ba61ffdc71584c670dae6bd3d80c (patch) | |
tree | 89d697d6786754e61c6fc66f0e68a7e5950fa797 | |
parent | 48a1d526d02c60c053193945a1c02709f7851f5a (diff) | |
download | glibc-7a2645e470f1ba61ffdc71584c670dae6bd3d80c.tar.gz glibc-7a2645e470f1ba61ffdc71584c670dae6bd3d80c.tar.xz glibc-7a2645e470f1ba61ffdc71584c670dae6bd3d80c.zip |
* sysdeps/unix/sysv/linux/faccessat.c (faccessat): Try using the
syscall in more cases.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/faccessat.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 9aaf9d2797..5a47303403 100644 --- 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. diff --git a/sysdeps/unix/sysv/linux/faccessat.c b/sysdeps/unix/sysv/linux/faccessat.c index 7c28280ae6..fc8db25e01 100644 --- a/sysdeps/unix/sysv/linux/faccessat.c +++ b/sysdeps/unix/sysv/linux/faccessat.c @@ -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 |