utimens: work around glibc rounding bug on more platforms
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Dec 2010 19:01:57 +0000 (11:01 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Dec 2010 19:02:29 +0000 (11:02 -0800)
* lib/utimens.c (fdutimens): Work around rounding bug even if
HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.

ChangeLog
lib/utimens.c

index dc5dc40..57b2bc3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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
+       <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
+
 2010-12-27  Bruno Haible  <bruno@clisp.org>
 
        select tests: Improve comments.
index 99b2290..af9acaa 100644 (file)
@@ -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