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: Joerg Schilling
Subject: Re: [Bug-tar] tar writes invalid mtime for times before the epoch
Date: Mon, 20 Nov 2017 11:51:00 +0100
User-agent: Heirloom mailx 12.5 7/5/10

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'.

Well, base-256 is not even special to GNU tar. It has been introduced by star 
before and was later adopted by GNU tar.

The background is that base-256 allows up to 95 bits + sign bit and this is 
sufficient for all possible storage as long as you cannot manage to store part 
of the data in a parallel universe.

Jörg

-- 
 EMail:address@hidden                    (home) Jörg Schilling D-13353 Berlin
    address@hidden (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'



reply via email to

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