Using UTIME_OMIT with non-zero seconds was already worked around
for utimensat, but I missed the futimens case.
* lib/utimens.c (fdutimens): Use updated, rather than original,
timespec to avoid bug in older Linux kernel.
Reported by Simon Josefsson.
Signed-off-by: Eric Blake <ebb9@byu.net>
+2009-11-04 Eric Blake <ebb9@byu.net>
+
+ utimens: fix use of futimens on older Linux
+ * lib/utimens.c (fdutimens): Use updated, rather than original,
+ timespec to avoid bug in older Linux kernel.
+ Reported by Simon Josefsson.
+
2009-11-04 Bruno Haible <bruno@clisp.org>
Make num_processors more flexible and consistent.
# endif /* HAVE_UTIMENSAT */
# if HAVE_FUTIMENS
{
- int result = futimens (fd, timespec);
+ int result = futimens (fd, ts);
# ifdef __linux__
/* Work around the same bug as above. */
if (0 < result)