From c35c85112f8cd1532c4a7f7fe7602d0e5fbe5fc5 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 27 Dec 2010 11:01:57 -0800 Subject: [PATCH] utimens: work around glibc rounding bug on more platforms * lib/utimens.c (fdutimens): Work around rounding bug even if HAVE_WORKING_UTIMES. Reported for Linux 2.4.21 by Bruno Haible in . --- ChangeLog | 7 +++++++ lib/utimens.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dc5dc401f..57b2bc3ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-12-27 Paul Eggert + + utimens: work around glibc rounding bug on more platforms + * lib/utimens.c (fdutimens): Work around rounding bug even if + HAVE_WORKING_UTIMES. Reported for Linux 2.4.21 by Bruno Haible in + . + 2010-12-27 Bruno Haible select tests: Improve comments. diff --git a/lib/utimens.c b/lib/utimens.c index 99b22900d..af9acaac2 100644 --- a/lib/utimens.c +++ b/lib/utimens.c @@ -338,7 +338,7 @@ fdutimens (int fd, char const *file, struct timespec const timespec[2]) # endif if (futimes (fd, t) == 0) { -# if __linux__ && __GLIBC__ && ! HAVE_WORKING_UTIMES +# if __linux__ && __GLIBC__ /* Work around a longstanding glibc bug, still present as of 2010-12-27. On older Linux kernels that lack both utimensat and utimes, glibc's futimes rounds instead of -- 2.11.0