[Bug 1519] hardlink of symlink in archive messes up permissions

bugzilla at busybox.net bugzilla at busybox.net
Fri Apr 9 08:53:24 UTC 2010


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





--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com>  2010-04-09 08:53:24 UTC ---
Works for me:


tar.tests:
==========
#!/bin/sh
rm -rf input_* test.tar 2>/dev/null

>input_hard1
chmod 741 input_hard1
ln input_hard1 input_hard2
mkdir input_dir
chmod 550 input_dir
ln input_hard1 input_dir
ln input_hard2 input_dir

/usr/bin/tar cf test.tar input_*
rm -rf input_*

./busybox tar tvf test.tar
./busybox tar xf test.tar
echo Ok: $?
ls -l . input_dir/* | grep input_
rm -rf input_* test.tar 2>/dev/null


Running it:


dr-xr-x--- root/root  0 2010-04-09 10:50:08 input_dir/
-rwxr----x root/root  0 2010-04-09 10:50:08 input_dir/input_hard1
-rwxr----x root/root  0 2010-04-09 10:50:08 input_dir/input_hard2 ->
input_dir/input_hard1
-rwxr----x root/root  0 2010-04-09 10:50:08 input_hard1 ->
input_dir/input_hard1
-rwxr----x root/root  0 2010-04-09 10:50:08 input_hard2 ->
input_dir/input_hard1
Ok: 0
-rwxr----x    4 root     root             0 Apr  9 10:50 input_dir/input_hard1
-rwxr----x    4 root     root             0 Apr  9 10:50 input_dir/input_hard2
dr-xr-x---    2 root     root           112 Apr  9 10:50 input_dir
-rwxr----x    4 root     root             0 Apr  9 10:50 input_hard1
-rwxr----x    4 root     root             0 Apr  9 10:50 input_hard2


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list