➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jmr
Recipients jmr
Date 2021-11-22.08:01:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637568080.9.0.260845551853.issue45863@roundup.psfhosted.org>
In-reply-to
Content
When using the pax format, tarfile will zero out the field in the ustar header for any values that are represented with a float, setting the correct value only in the pax header. This mainly seems to apply to the mtime. This behaviour doesn't cause problems when using an unarchiver that understands the pax header, but unarchivers that don't will extract incorrect metadata (most obviously all mtimes set to the epoch). Compatibility with such unarchivers can easily be achieved by rounding the float value to int for the ustar header only, thus at least giving mtimes that are accurate to the nearest second instead of nothing.
History
Date User Action Args
2021-11-22 08:01:20jmrsetrecipients: + jmr
2021-11-22 08:01:20jmrsetmessageid: <1637568080.9.0.260845551853.issue45863@roundup.psfhosted.org>
2021-11-22 08:01:20jmrlinkissue45863 messages
2021-11-22 08:01:20jmrcreate