changeset 7687:7fcc949f763a

* 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.
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 25 Nov 2006 19:29:08 +0000
parents cc03ad3b094d
children abc20b5ad112
files ChangeLog m4/fcntl_h.m4
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/m4/fcntl_h.m4
+++ b/m4/fcntl_h.m4
@@ -46,8 +46,7 @@
 		  || 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;]])],