mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
* sysdeps/unix/sysv/linux/faccessat.c (faccessat): Try using the
syscall in more cases.
This commit is contained in:
parent
48a1d526d0
commit
7a2645e470
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user