This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setup.exe adds a millisecond to file timestamps


On Mar  7 20:52, Christian Franke wrote:
> 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 :-).

Thanks, I applied a patch to setup.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]