|
From: | Rodrigo Queiro |
Subject: | Re: [Bug-tar] tar writes invalid mtime for times before the epoch |
Date: | Mon, 20 Nov 2017 09:35:48 +0100 |
Rodrigo Queiro wrote:
I discovered this because Python's tarfile module fails to open such files
with "invalid header", since it expects this field to contain an ASCII
number, as described in the docs:
That's a shortcoming in tar's documentation. Tar uses the GNU format by default, which has a base-256 extension that supports negative timestamps. If you want GNU tar to refuse to use this GNU extension, please use '-H ustar'.
I fixed the documentation bug by installing the attached patches. Most of them are to bring Tar up-to-date with recently-released compilers and whatnot; patch 0003 fixes the documentation bug in question.
[Prev in Thread] | Current Thread | [Next in Thread] |