Mercurial > gnulib
changeset 27378:7338d30b4f2f
* 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 | 69dd2ddc1731 |
children | 02fd8517a6f8 |
files | ChangeLog m4/fcntl_h.m4 |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Nov 23 20:18:34 2006 +0000 +++ b/ChangeLog Sat Nov 25 19:29:08 2006 +0000 @@ -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 Thu Nov 23 20:18:34 2006 +0000 +++ b/m4/fcntl_h.m4 Sat Nov 25 19:29:08 2006 +0000 @@ -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;]])],