From 6584c64cf7e1e0bf66ab83d27cde88454e317ec7 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 25 Nov 2006 19:29:08 +0000 Subject: [PATCH] * 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. --- ChangeLog | 6 ++++++ m4/fcntl_h.m4 | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0408b8f82..2d5920fd0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-11-25 Nix (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 (tiny change) * lib/sincosl.c (kernel_sinl): Fix typo in threshold. diff --git a/m4/fcntl_h.m4 b/m4/fcntl_h.m4 index fe7dffdaa..9846b2f31 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;]])], -- 2.11.0