Implement faccessat without AT_EACCESS flag
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 14 Jan 2018 10:24:48 +0000 (10:24 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sun, 14 Jan 2018 10:24:48 +0000 (10:24 +0000)
commit42b672e54206e5662029d64a0fa7a947247ec160
tree04c842b097cbb63a0874b6a5b91170a20c626d23
parent1780ffada5998d18f14b68cb56981c30e1f4a11b
Implement faccessat without AT_EACCESS flag

* hurd/hurd/fd.h: Include <fcntl.h>
(__hurd_at_flags): New function.
* hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
with call to __hurd_at_flags.
* include/unistd.h (__faccessat): Add declaration.
* sysdeps/mach/hurd/access.c (__access): Move implementation to
__faccessat, and replace it with a call to __faccessat.
* sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
with a call to __faccessat.
* sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
(__faccessat): ... this. Move implementation of __access into it when
AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
reauthenticate_cwdir_at helper to implement AT mechanism.
(faccessat): Define weak alias.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-faccessat.diff
hurd/hurd/fd.h
hurd/lookup-at.c
include/unistd.h
sysdeps/mach/hurd/access.c
sysdeps/mach/hurd/euidaccess.c
sysdeps/mach/hurd/faccessat.c