GNU bug report logs - #29261
Save/restore dates does not work properly

Previous Next

Package: gzip;

Reported by: Antonio Sidinei Schug <antoniosidineischug <at> gmail.com>

Date: Sat, 11 Nov 2017 21:17:02 UTC

Severity: normal

Tags: moreinfo

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29261 in the body.
You can then email your comments to 29261 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gzip <at> gnu.org:
bug#29261; Package gzip. (Sat, 11 Nov 2017 21:17:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Antonio Sidinei Schug <antoniosidineischug <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gzip <at> gnu.org. (Sat, 11 Nov 2017 21:17:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Antonio Sidinei Schug <antoniosidineischug <at> gmail.com>
To: bug-gzip <at> gnu.org
Subject: Save/restore dates does not work properly
Date: Sat, 11 Nov 2017 19:08:21 -0200
[Message part 1 (text/plain, inline)]
gzip version 1.3.12(Windows) and probaly others too, does not save /
restore file timestamp correctly(Always set to current.
Linux versions, when saving to a local file system, resoter/save correctly,
but if it is a mounted remote filesystem like CIFS in my case, does not.
After a change in the source code that I made,  all Works OK.
The bug is, if copy_stat (&istat) is executed before I close ofd(file
descriptor of a file being saved/restored), those times are not set
properly.
Bu if I put copy_stat after file descriptor(ofd) is closed, and set it ofd
= -1, then, they are all ok

Best regards

Antonio Sidinei Schug
[Message part 2 (text/html, inline)]

Information forwarded to bug-gzip <at> gnu.org:
bug#29261; Package gzip. (Sat, 11 Nov 2017 23:21:01 GMT) Full text and rfc822 format available.

Message #8 received at 29261 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Antonio Sidinei Schug <antoniosidineischug <at> gmail.com>,
 29261 <at> debbugs.gnu.org
Subject: Re: bug#29261: Save/restore dates does not work properly
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




Added tag(s) moreinfo. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Fri, 01 Apr 2022 06:48:01 GMT) Full text and rfc822 format available.

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Mon, 26 Dec 2022 05:53:02 GMT) Full text and rfc822 format available.

Notification sent to Antonio Sidinei Schug <antoniosidineischug <at> gmail.com>:
bug acknowledged by developer. (Mon, 26 Dec 2022 05:53:02 GMT) Full text and rfc822 format available.

Message #15 received at 29261-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Antonio Sidinei Schug <antoniosidineischug <at> gmail.com>
Cc: 29261-done <at> debbugs.gnu.org
Subject: Re: bug#29261: Save/restore dates does not work properly
Date: Sun, 25 Dec 2022 21:52:33 -0800
On 11/11/17 15:19, Paul Eggert wrote:
>
> Can you reproduce the problem with the current version?

No further comment in five years, so closing this old bug report.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 23 Jan 2023 12:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.