Hash :
c738b11c
Author :
Date :
2021-01-09T08:20:17
fchmodat: Work around trailing slash bug in fchmodat() on AIX 7.2. * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): In the test whether fchmodat works, also test for the trailing slashes behaviour. Define HAVE_NEARLY_WORKING_FCHMODAT if this is the only missing feature. * lib/fchmodat.c (fchmodat): If HAVE_NEARLY_WORKING_FCHMODAT, handle trailing slashes here. * modules/fchmodat (Depends-on): Sort by condition, not alphabetically. * doc/posix-functions/fchmodat.texi: Document the AIX bug.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
Description:
fchmodat() function: Change access permissions of a file at a directory.
Files:
lib/fchmodat.c
lib/at-func.c
m4/fchmodat.m4
Depends-on:
sys_stat
extensions
errno [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
fcntl-h [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
unistd [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
intprops [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
c99 [test $REPLACE_FCHMODAT = 1]
fstatat [test $REPLACE_FCHMODAT = 1]
at-internal [test $HAVE_FCHMODAT = 0]
extern-inline [test $HAVE_FCHMODAT = 0]
fchdir [test $HAVE_FCHMODAT = 0]
filename [test $HAVE_FCHMODAT = 0]
lchmod [test $HAVE_FCHMODAT = 0]
openat-die [test $HAVE_FCHMODAT = 0]
openat-h [test $HAVE_FCHMODAT = 0]
save-cwd [test $HAVE_FCHMODAT = 0]
configure.ac:
gl_FUNC_FCHMODAT
if test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1; then
AC_LIBOBJ([fchmodat])
gl_PREREQ_FCHMODAT
fi
gl_SYS_STAT_MODULE_INDICATOR([fchmodat])
Makefile.am:
Include:
<sys/stat.h>
License:
GPL
Maintainer:
Jim Meyering, Eric Blake, Paul Eggert