Fix a problem seen only on nonconforming systems whereby ls.c's
authorJim Meyering <jim@meyering.net>
Mon, 27 May 2002 16:42:55 +0000 (16:42 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 27 May 2002 16:42:55 +0000 (16:42 +0000)
commitd2be1268c4d3ed0c8ba6974c7562b777a1564657
tree442132f3c7a47157fbdbafbf6175edd7823d45ea
parentc75c72a9fc4d52edbb929fa4384ae68c95dba0a7
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.

(localtime): Undefine.
(rpl_localtime): New function.
lib/gettimeofday.c