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 insidearchive w


From: Paul Eggert
Subject: Re: [Bug-tar] TAR creates hard links or duplicated files insidearchive when using -T option
Date: Mon, 05 Nov 2012 14:36:05 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1

On 11/05/2012 02:07 PM, Marek Kielar wrote:

> I would expect a hard link to be included only when the
> same file was listed again but through an additional hard
> link with some other name, and that also included only
> once, if given multiple times on the command line.

I've read that sentence two or three times, and I'm
afraid I still don't know what it means.  Which sort
of underscores that we're in a tricky area here.

If I understand you correctly, one objection to your
approach is that it's not trivial to determine whether
a file is "an additional hard link with some other
name".  For example, after "mkdir d; touch f; ln f d/f; ln
-s . dot", the file names "dot/f" and "f" name the same hard
link, whereas the file names "d/f" and "f" name different
hard links, but this cannot be determined merely by invoking
lstat on "d/f", "f", and "dot/f".



reply via email to

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