mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-05 09:01:07 +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>
|
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
|
* io/Makefile (tests): Add tst-symlinkat, tst-linkat, and
|
||||||
tst-readlinkat.
|
tst-readlinkat.
|
||||||
* io/tst-symlinkat.c: New file.
|
* io/tst-symlinkat.c: New file.
|
||||||
|
@ -45,7 +45,7 @@ faccessat (fd, file, mode, flag)
|
|||||||
int result;
|
int result;
|
||||||
|
|
||||||
#ifdef __NR_faccessat
|
#ifdef __NR_faccessat
|
||||||
if (flag == 0
|
if ((flag == 0 || ((flag & ~AT_EACCESS) == 0 && ! __libc_enable_secure))
|
||||||
# ifndef __ASSUME_ATFCTS
|
# ifndef __ASSUME_ATFCTS
|
||||||
&& __have_atfcts >= 0
|
&& __have_atfcts >= 0
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user