[Top][All Lists]

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

[Bug-tar] symlink-eating bug: the reproducer

From: Michael Tokarev
Subject: [Bug-tar] symlink-eating bug: the reproducer
Date: Thu, 30 May 2013 17:57:41 +0400
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12


There's an old bugreport in Debian about "symlink-eating" behavour
of tar, which were considered unreproducible for quite some time --
http://bugs.debian.org/452365 .

Recently I managed to hit this bug too, and after some tries
created a reproducer from my files.  I attached the reproducer
to that bugreport, see http://bugs.debian.org/452365#44 .

The problem in short is that when extracting archive which contains
hardlinked symlinks (several symlinnks hard-linked to each other),
in some cases the result of extraction is not what it should be,
and all these symlinks gets turned into zero-length, zero-permissions
but correctly hardlinked regular files instead.

The reproducer attached to the debian bugreport shows this issue.
In there, the symlinks in question are in [ep]/etc/rc?.d/ -- these
should be hardlinked to each other (it is from rsync --link-dest).

I wanted to take a look at this issue myself to maybe produce a
patch too, but unfortunately right now I don't have time to do that,
also because I'm not familiar with tar source.

But maybe this will be useful reproducer for someone more knowlegeable,
before I'll be able to get to that myself.



reply via email to

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