On Mon, Mar 15, 2010 at 07:26:59PM -0600, Eric Blake wrote:
>> On 03/15/2010 09:35 AM, Denis Excoffier wrote:
>> >
>> > Hello,
>> >
>> > It seems that on Cygwin, the `file modification time in Unix
format' of
>> > the output format is not set properly.
>>
>> Please report this to the cygwin list; it is quite likely that the
bug
>> lies either in cygwin1.dll or in the particular port of gzip to
cygwin,
>> rather than upstream.
This has been reported to the cygwin list (see
http://cygwin.com/ml/cygwin/2010-03/msg00549.html). In her
answer, Corinna Vinschen states (implicitly) that you cannot assume
that the st_mtime of a pipe is not "artificially" forged.
If i understand correctly the file `gzip.c' lines 625 to 634
(gzip-1.4.tar.gz), a call to `time_t time()' has to be added around.
Best regards,
Denis Excoffier.