From 7a2645e470f1ba61ffdc71584c670dae6bd3d80c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 20 Jan 2006 22:37:35 +0000 Subject: [PATCH] * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Try using the syscall in more cases. --- ChangeLog | 3 +++ sysdeps/unix/sysv/linux/faccessat.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9aaf9d2797..5a47303403 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-01-20 Ulrich Drepper + * 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