* m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Nov 2006 19:29:08 +0000 (19:29 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Nov 2006 19:29:08 +0000 (19:29 +0000)
Don't close an fd more than once. Identical atimes indicate
success, not failure.

ChangeLog
m4/fcntl_h.m4

index 0408b8f..2d5920f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
+
+       * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
+       Don't close an fd more than once. Identical atimes indicate
+       success, not failure.
+
 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
 
        * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
index fe7dffd..9846b2f 100644 (file)
@@ -46,8 +46,7 @@ AC_DEFUN([gl_FCNTL_H],
                  || read (fd, &c, 1) != 1
                  || close (fd) != 0
                  || stat (file, &st1) != 0
-                 || st1.st_mtime <= st0.st_mtime
-                 || close (fd) != 0)
+                 || st0.st_atime != st1.st_atime)
                status |= 64;
            }
            return status;]])],