]> Savannah Git Hosting - gnulib.git/commitdiff
futimens: remove FIXME for old Linux kernels
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Nov 2016 22:38:59 +0000 (15:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Nov 2016 22:40:02 +0000 (15:40 -0700)
* m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
this in 2012" FIXME, like that for utimensat.

ChangeLog
m4/futimens.m4

index 999dc0418a1c0a8a1218e08246b81c62c660e8c3..6e578870a5490b78b73a3a861df6ebd130b9a6ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
 
+       futimens: remove FIXME for old Linux kernels
+       * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
+       this in 2012" FIXME, like that for utimensat.
+
        utimensat: remove FIXME for old Linux kernels
        * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
        * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
index 159468cb79a59ae006526d5a4cd1c7b90356cacf..3418d4e05281a9eeeaa333ecaa74dd3ffbafaa27 100644 (file)
@@ -1,4 +1,4 @@
-# serial 6
+# serial 7
 # See if we need to provide futimens replacement.
 
 dnl Copyright (C) 2009-2016 Free Software Foundation, Inc.
@@ -38,21 +38,11 @@ AC_DEFUN([gl_FUNC_FUTIMENS],
       if (fstat (fd, &st)) return 6;
       if (st.st_ctime < st.st_atime) return 7;
       ]])],
-dnl FIXME: simplify this in 2012, when file system bugs are no longer common
-         [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-#ifdef __linux__
-/* The Linux kernel added futimens in 2.6.22, but has bugs with UTIME_OMIT
-   in several file systems as recently as 2.6.32.  Always replace futimens
-   to support older kernels.  */
-choke me
-#endif
-      ]])],
-           [gl_cv_func_futimens_works=yes],
-           [gl_cv_func_futimens_works="needs runtime check"])],
+         [gl_cv_func_futimens_works=yes],
          [gl_cv_func_futimens_works=no],
-         [gl_cv_func_futimens_works="guessing no"])
+         [gl_cv_func_futimens_works="guessing yes"])
       rm -f conftest.file])
-    if test "$gl_cv_func_futimens_works" != yes; then
+    if test "$gl_cv_func_futimens_works" = no; then
       REPLACE_FUTIMENS=1
     fi
   fi