[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file modification time not properly set on Cygwin
From: |
Denis Excoffier |
Subject: |
Re: file modification time not properly set on Cygwin |
Date: |
Wed, 17 Mar 2010 19:13:43 +0100 |
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.