Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 159443

Summary: GNU tar-1.16 introduced a bug involved extraction of symlinks
Product: Gentoo Linux Reporter: Steven Winikoff <smw>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.mail-archive.com/bug-tar@gnu.org/msg01015.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Steven Winikoff 2006-12-29 21:24:22 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
Build Identifier: 

As described in the URL above, GNU tar version 1.16 introduced a bug that causes
symlinks to be extracted as zero-length regular files under some circumstances.

Obviously this isn't Gentoo's issue, but it might be nice to mask that version
for all architectures.

Note that this is probably related to bug number 157923; I've filed this
separately because 157923 appears to describe additional issues that are
specific to Amanda.

Reproducible: Sometimes

Steps to Reproduce:
I noticed the problem while trying to a transfer a large directory from an old
machine onto the brand-new Gentoo box that I'm in the middle of configuring (my
first Gentoo machine, and so far I really like the way Gentoo is designed, but I
digress :-).

The archive command in question, issued on the old machine, was

   cd directory_to_copy
   tar cf - * | (ssh newmachine /tmp/tar xpf - -C /parent_directory)

It was when I noticed that some of my symlinks had been transferred as
zero-length files that I did the Google search which led to the above link.

I haven't tried to research this any further; I figure the workaround is just to
use an older version of tar until this is fixed by the tar maintainers.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-30 01:23:24 UTC
Reopen with emerge -pv tar and emerge --info