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: MrC
Subject: RE: [Bug-tar] Symlink extraction broken w/recent CVS versions
Date: Thu, 31 May 2007 15:40:03 -0700

> MrC ha escrit:
> 
> > However, upon extraction, symlinks a and b are not created 
> correctly, 
> > and become dead links:
> 
> When you run `tar vxf /tmp/test.tar' you get the following:
> 
> test/
> test/a
> test/b
> test/somedir/
> test/somedir/a
> ../tar: Removing leading `../' from hard link targets 
> --------^^^^^^^^^^^^^^^^
>      
> If you wish to preserve relative paths to upper directories, 
> use -P (--absolute-names) command line option:
> 
> $ tar vvxfP /tmp/test.tar
> drwxr-xr-x gray/staff        0 2007-06-01 00:24 test/
> -rw-r--r-- gray/staff        0 2007-06-01 00:24 test/a
> -rw-r--r-- gray/staff        0 2007-06-01 00:24 test/b
> drwxr-xr-x gray/staff        0 2007-06-01 00:24 test/somedir/
> lrwxrwxrwx gray/staff        0 2007-06-01 00:24 test/somedir/a -> ../a
> lrwxrwxrwx gray/staff        0 2007-06-01 00:24 test/somedir/b -> ../b
> 
> Regards,
> Sergey


This is a change in behavior from 1.16.1, which does not yet appear in the
Changelog.

I was bitten by this change during my attempt to rebuild some standard
software from is distribution tar archive.  I would *never* use -P when
extracting someone else's tar archive into my file system, but this change
seems to *require* that I do in order to correctly extract the archive (or,
manually fix all broken symbolic links by hand).

This doesn't seem appropriate, and is going to bite a lot of software
distributors and builders.

MrC





reply via email to

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