Page MenuHome GnuPG

Preservation of modification date upon decryption/extraction.
Open, NormalPublic

Description

Apparently neither gpg nor gpgtar are currently capable of retaining a files's modification date upon decryption/extraction, at least not on Windows XP.

From what I can tell, gpgtar can correctly store said information which thing can be easily corroborated through --list-archive, but as far as gpg.exe goes, chances are it's not even storing it at all, and that's probably a more complicated issue relating directly to OpenPGP format itself.

If that much could done for at least the encrypted tar's, it would allow users to do away with third party applications such as 7-zip in cases where the preservation of timestamps is not optional.

Thanks for your time and sorry for any inconvenience.

Details

Version
GnuPG 2.2.22 on Windows XP 32-bit

Event Timeline

werner added a subscriber: werner.

I will consider a -p option for gpgtar.

werner triaged this task as Normal priority.Sep 7 2020, 10:30 AM

While reviewing this task I noticed that I wrote adding a -p option. This is non-sense, because -p is to preserve permissions at extract time; this is unrelated to the last modification time. Standard tar extract files and set the modification to the one given in the tarball - unless you use -m to use the current time. Thus this task is actually a bug and not a feature request. For backward compatibility this will be done only for gnupg26 for now.