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.

Full log


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)]

This bug report was last modified 2 years and 230 days ago.

Previous Next


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