openat: test for fstatat (AT_FDCWD, ..., 0) bug
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 3 Sep 2011 17:03:22 +0000 (10:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 3 Sep 2011 17:03:57 +0000 (10:03 -0700)
commite91216b238f2af78257bd943db0b22b289d172cc
treec62e37cf00e843f0a3d990cc4fb24610e2dcfe08
parente4078c6f6eed0f441ab49d8b98f3812c20f7278d
openat: test for fstatat (AT_FDCWD, ..., 0) bug

This tests for another fstatat bug on AIX 7.1:
fstatat (AT_FDCWD, ..., 0) does not work.  See
<http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
* lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
(LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
(rpl_fstatat): Adjust so that it works around either (or both)
bugs if present.
* m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
ChangeLog
lib/fstatat.c
m4/openat.m4