bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Symlink extraction broken w/recent CVS versions


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] Symlink extraction broken w/recent CVS versions
Date: Fri, 01 Jun 2007 15:27:14 +0300

Paul Eggert <address@hidden> ha escrit:

> I agree.  It appears to be a bug introduced in this patch:

Yes, indeed.  I agree, too.

> As your example shows, it's not so simple as blindly applying
> --strip-components values to every link that comes in.  Perhaps
> absolute links should be stripped, but certainly a relative symbolic
> link within the tree should not be stripped.

In this particular case, yes, probably it should not.  But the problem
is more general than that.  Consider, for example, running

   tar --transform='s,/subdir/,/sub-dir/,' -x -f archive.tar

and suppose that archive.tar contains the following symlink:

   dir1/a -> ../subdir/a

The link target contains leading dots, but it is obviously subject to
filename transformation, otherwise the extraction won't be correct.

Regards,
Sergey
   
   




reply via email to

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