Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159443 - GNU tar-1.16 introduced a bug involved extraction of symlinks
Summary: GNU tar-1.16 introduced a bug involved extraction of symlinks
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2006-12-29 21:24 UTC by Steven Winikoff
Modified: 2006-12-30 01:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Steven Winikoff 2006-12-29 21:24:22 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20060909 Firefox/
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