This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
setup.exe adds a millisecond to file timestamps
- From: Christian Franke <Christian dot Franke at t-online dot de>
- To: cygwin-apps at cygwin dot com
- Date: Wed, 07 Mar 2012 20:52:58 +0100
- Subject: setup.exe adds a millisecond to file timestamps
Timestamps from files extracted by setup.exe (2.769) and tar differ
slightly.
Is this done intentionally to mark files installed by setup.exe with an
"impossible" time stamp?
$ tar xf coreutils-8.15-1.tar.bz2 -C /tmp usr/bin/ls.exe
$ ls -l --full-time /usr/bin/ls.exe /tmp/usr/bin/ls.exe
... 101902 2012-02-06 14:59:20.001000000 +0100 /usr/bin/ls.exe
... 101902 2012-02-06 14:59:20.000000000 +0100 /tmp/usr/bin/ls.exe
Setup.exe source:
$ grep '#define FACTOR' *.cc
archive_tar.cc:#define FACTOR (0x19db1ded53ea710LL)
io_stream_cygfile.cc:#define FACTOR (0x19db1ded53ea710LL)
io_stream_file.cc:#define FACTOR (0x19db1ded53ea710LL)
These lines are unchanged since first commit from 2001-11-13.
Cygwin DLL source:
$ grep '#define FACTOR' *.cc
times.cc:#define FACTOR (0x19db1ded53e8000LL)
The FACTOR used by cygwin DLL is apparently correct.
(Hex and decimal notation have many Google or Bing hits, setup's FACTOR
has none :-).
Christian