summaryrefslogtreecommitdiff
path: root/m4/fcntl_h.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-11-25 19:29:08 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-11-25 19:29:08 +0000
commit6584c64cf7e1e0bf66ab83d27cde88454e317ec7 (patch)
tree9b93118d80cebb3db8ec931ca22fd1ec594f8c73 /m4/fcntl_h.m4
parenta6eeca796a39134d0f4ccfee9a29c65312fc0f47 (diff)
downloadgnulib-6584c64cf7e1e0bf66ab83d27cde88454e317ec7.tar.gz
* 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.
Diffstat (limited to 'm4/fcntl_h.m4')
-rw-r--r--m4/fcntl_h.m43
1 files changed, 1 insertions, 2 deletions
diff --git a/m4/fcntl_h.m4 b/m4/fcntl_h.m4
index fe7dffdaa0..9846b2f313 100644
--- a/m4/fcntl_h.m4
+++ b/m4/fcntl_h.m4
@@ -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;]])],