bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] tar writes invalid mtime for times before the epoch


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

Thank you! FYI, there's a typo in 0003 - "concatenating" instead of "concatenated".

On Sat, Nov 18, 2017 at 5:48 PM, Paul Eggert <address@hidden> wrote:
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.

-- 
Google Germany GmbH | Erika-Mann-Strasse | 80636 Muenchen | Germany

AG Hamburg, HRB 86891 | Sitz der Gesellschaft: Hamburg | Geschäftsführer: Paul Manicle, Halimah DeLaine Prado

reply via email to

[Prev in Thread] Current Thread [Next in Thread]