utimensat: Work around trailing slash bug in utimensat() on AIX 7.2.
commit9333dcf67b904820e442634077ecfe285b363c1a
authorBruno Haible <bruno@clisp.org>
Wed, 6 Jan 2021 01:08:41 +0000 (6 02:08 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 6 Jan 2021 03:59:20 +0000 (6 04:59 +0100)
treed5433564b16e2956c1725c1ab14fa9b1fbc39369
parentdb1e2d8454753100558a2208a7f858ac957c25d0
utimensat: Work around trailing slash bug in utimensat() on AIX 7.2.

* m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Require AC_CANONICAL_HOST. Add a
test for trailing slash handling. Improve cross-compilation guesses.
Conditionally define HAVE_NEARLY_WORKING_UTIMENSAT.
* lib/utimensat.c (rpl_utimensat): Add alternative implementation when
HAVE_NEARLY_WORKING_UTIMENSAT is defined.
* lib/utimens.c: Use the overridden utimensat when
HAVE_NEARLY_WORKING_UTIMENSAT is defined.
* doc/posix-functions/utimensat.texi: Mention the AIX bug.
ChangeLog
doc/glibc-functions/futimesat.texi
doc/posix-functions/utime.texi
doc/posix-functions/utimensat.texi
doc/posix-functions/utimes.texi
lib/utimens.c
lib/utimensat.c
m4/utimensat.m4