changeset 14047:126b2fb2abab

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>.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 27 Dec 2010 11:01:57 -0800
parents 483bac6e8bce
children 2defc00f2b21
files ChangeLog lib/utimens.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Dec 27 18:53:31 2010 +0100
+++ b/ChangeLog	Mon Dec 27 11:01:57 2010 -0800
@@ -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.
--- a/lib/utimens.c	Mon Dec 27 18:53:31 2010 +0100
+++ b/lib/utimens.c	Mon Dec 27 11:01:57 2010 -0800
@@ -338,7 +338,7 @@
 #  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