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)
committerIan Beckwith <ianb@erislabs.net>
Thu, 8 Sep 2011 02:04:07 +0000 (03:04 +0100)
commit946c971f93d58ec52508dbcc36b59ca9f925bf31
treedbe49906d01e973550dec976ea0e52441ef50d43
parentb26a79b01ebd995cd4191f5f920672dc646822b4
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.
(cherry picked from commit e91216b238f2af78257bd943db0b22b289d172cc)
ChangeLog
lib/fstatat.c
m4/openat.m4