bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] TAR creates hard links or duplicated files inside archive


From: Joerg Schilling
Subject: Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option
Date: Wed, 7 Nov 2012 16:37:03 +0100
User-agent: nail 11.22 3/20/05

Paul Eggert <address@hidden> wrote:

> On 11/07/2012 06:21 AM, Marek Kielar wrote:
>
> > $ gtar -cf t.tar f f ...
> > gtar: f: already added to archive, skipping
> > ...
>
> Yes, that might also be reasonable behavior.
> It's not clear to me that it's enough better
> than the current behavior to make it the default,
> though.

Well, a "normal tar" does not keep the meta data for the list of files in a 
file list file. There would at least be a need to sort the list and to 
normalize file names to find repeated names.

gtar on the other side seems to put all files into the database for linked 
files and could check whether a file with link count 1 is seen more than once.

Jörg

-- 
 EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
       address@hidden                (uni)  
       address@hidden (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



reply via email to

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