Subject: Re: bug#29261: Save/restore dates does not work properly

From: Paul Eggert <[email-masked]>
Date: Sat, 11 Nov 2017 15:19:59 -0800

Antonio Sidinei Schug wrote:
> gzip version 1.3.12(Windows) and probaly others too, does not save /
> restore file timestamp correctly(Always set to current.

1.3.12 is dated 2007 and is pretty old. I'm afraid that we worry only about the 
latest version.

> if I put copy_stat after file descriptor(ofd) is closed, and set it ofd
> = -1, then, they are all ok

That wouldn't work with the current version, where copy_stat needs ofd to do its 
thing. Can you reproduce the problem with the current version? See:

https://ftp.gnu.org/gnu/gzip/gzip-1.8.tar.gz