*** empty log message ***
authorJim Meyering <jim@meyering.net>
Mon, 27 May 2002 16:43:00 +0000 (16:43 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 27 May 2002 16:43:00 +0000 (16:43 +0000)
lib/ChangeLog
m4/ChangeLog

index 6e84bc5..8eca734 100644 (file)
@@ -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.
 
index 8d0596f..81a9aea 100644 (file)
@@ -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.