utimensat: Fix test failures on macOS 10.13.
commitebaa53c5f1253974c6f23bb1500d8de198e84ab8
authorBruno Haible <bruno@clisp.org>
Sat, 2 Jan 2021 18:31:45 +0000 (2 19:31 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 2 Jan 2021 18:31:45 +0000 (2 19:31 +0100)
tree207a374056d6ba01ae3a129d0f8dc6c7ae04668c
parentada3ec93554c518b6943c2e87cf2b92c9b7f20bd
utimensat: Fix test failures on macOS 10.13.

* lib/utimensat.c: Include <string.h>, <sys/stat.h>.
(rpl_utimensat): Check against invalid tv_nsec values. Before calling
utimensat, recognize a filename ending in a slash that does not point
to a directory.
ChangeLog
lib/utimensat.c