From: Paul Eggert Date: Mon, 27 Dec 2010 19:01:57 +0000 (-0800) Subject: utimens: work around glibc rounding bug on more platforms X-Git-Tag: v0.1~3440 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=c35c85112f8cd1532c4a7f7fe7602d0e5fbe5fc5;p=gnulib.git 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 . --- 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