This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: setup.exe adds a millisecond to file timestamps
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-apps at cygwin dot com
- Date: Thu, 8 Mar 2012 10:20:17 +0100
- Subject: Re: setup.exe adds a millisecond to file timestamps
- References: <4F57BC9A.4080607@t-online.de>
- Reply-to: cygwin-apps at cygwin dot com
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