bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] bug or feature?


From: Joerg Schilling
Subject: Re: [Bug-tar] bug or feature?
Date: Fri, 15 Dec 2017 12:00:26 +0100
User-agent: Heirloom mailx 12.5 7/5/10

Paul Eggert <address@hidden> wrote:

> On 12/14/2017 12:03 PM, Bruce Dubbs wrote:
> > Is there any reason that tar should change the permissions or 
> > ownership of the . directory if it is present in a tarball?
>
> Yes, as that's what tar has done "forever" and quite possibly some 
> people depend on it. It might be a good idea to omit extraction of "." 
> unless some new option is specified.

While the UNIX tar did this since ~ 1977, star does something different since 
before GNU tar even exists:

star extracts only files if they are younger in the archive than on disk.

This is what cpio decided to to and this is safe in most cases.


If you like to extract "." unconditionally there is a special star option
"-xdot".

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]