utimens: work around glibc rounding bug on older Linux kernels
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Dec 2010 08:21:02 +0000 (00:21 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Dec 2010 08:21:42 +0000 (00:21 -0800)
commit1114cbc4eda4c4d13fa48169be60ff2a165507cc
tree73d74f1a65c87d32de4599e6528e760dcdc5da73
parent5e4ba08522668e467368c5af5940550b858bf2f8
utimens: work around glibc rounding bug on older Linux kernels

* lib/utimens.c (fdutimens): If invoking futimesat or futimes
on Linux with a glibc whose utimes might not work, then work
around a longstanding glibc bug involving rounding rather than
truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
ChangeLog
lib/utimens.c