utimens: fix use of futimens on older Linux
authorEric Blake <ebb9@byu.net>
Wed, 4 Nov 2009 13:19:23 +0000 (06:19 -0700)
committerEric Blake <ebb9@byu.net>
Wed, 4 Nov 2009 13:24:54 +0000 (06:24 -0700)
commitba79e984f96e1470e583cc1731b2f80da9de9afc
tree9c30ace49ce94b660089f5a3f00896303de54986
parent4e4fd5b6c34d828725994b7f444e18fcf3f85589
utimens: fix use of futimens on older Linux

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>
ChangeLog
lib/utimens.c