[Bug 11026] New: tar: cannot extract hardlinked possibly-unsafe symlinks

bugzilla at busybox.net bugzilla at busybox.net
Sat May 19 09:36:37 UTC 2018


https://bugs.busybox.net/show_bug.cgi?id=11026

            Bug ID: 11026
           Summary: tar: cannot extract hardlinked possibly-unsafe
                    symlinks
           Product: Busybox
           Version: 1.28.x
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: bb at gigawatt.nl
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Test case:

mkdir dir
>dir/a
ln -s ../dir/a dir/b
ln dir/b dir/c
mkdir new
tar cf - dir/* | tar -C new -xf -

Expected result:

Successful extraction.

Actual result:

tar: can't create hardlink 'dir/c' to 'dir/b': No such file or directory

Re-tested with current master (2ccd3522816291bd7e3ede3f60370d725d86e179)

I sent a patch for this to the mailing list on April 1 (after a botched attempt
at a fix the day before) and followed up a few times:

http://lists.busybox.net/pipermail/busybox/2018-April/086346.html

I am submitting it as a bug now so that I do not have to keep pinging it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list