changeset 3855:e8cd120cdb5c

*** empty log message ***
author Jim Meyering <jim@meyering.net>
date Mon, 27 May 2002 16:43:00 +0000
parents 7793955f520f
children 16a28d7390aa
files lib/ChangeLog m4/ChangeLog
diffstat 2 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,7 +1,18 @@
+2002-05-27  Jim Meyering  <meyering@lucent.com>
+
+	Fix a problem seen only on nonconforming systems whereby ls.c's
+	use of localtime, and then of gettimeofday would cause trouble:
+	the localtime call used to initialize rpl_gettimeofday's save
+	mechanism would clobber ls's current local time information so
+	that in any long listing the first file would always be listed
+	with date 1970-01-01.  Analysis by Volker Borchert.
+
+	* gettimeofday.c (localtime): Undefine.
+	(rpl_localtime): New function.
+
 2002-05-22  Jim Meyering  <meyering@lucent.com>
 
 	* Makefile.am (libfetish_a_SOURCES): Add file-type.c and file-type.h.
-
 	* file-type.h: New file.
 	* file-type.c (file_type): New file/function.  Extracted from diffutils.
 
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,5 +1,8 @@
 2002-05-27  Jim Meyering  <meyering@lucent.com>
 
+	* gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
+	localtime.
+
 	* readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
 	use the replacement function; it wouldn't resolve at link time.
 	Reported by Volker Borchert.