[Bug 13406] New: The uid and gid of the soft link is changed after decompressing with the busybox tar
bugzilla at busybox.net
bugzilla at busybox.net
Wed Dec 23 06:39:26 UTC 2020
https://bugs.busybox.net/show_bug.cgi?id=13406
Bug ID: 13406
Summary: The uid and gid of the soft link is changed after
decompressing with the busybox tar
Product: Busybox
Version: 1.31.x
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at busybox.net
Reporter: xiechengliang1 at huawei.com
CC: busybox-cvs at busybox.net
Target Milestone: ---
Soft links created by ordinary users, after being compressed, the root user
uses the busybox tar to decompress, and the owner of the soft link will become
root.
It is expected that the owner of the soft link will remain unchanged after
decompression. Is this a bug?
eg.
$ ls -l
drwx------ 2 test test 0 Jan 7 16:21 test
lrwxrwxrwx 1 test test 12 Jan 7 16:21 test_link ->
test/test.sh
$ busybox tar czf test.tar.gz test test_link
$ mkdir result; cd result
# Unzip with the root user, the owner of the soft link becomes root
$busybox tar xzf ../test.tar.gz
drwx------ 2 test test 0 Jan 7 16:25 test
lrwxrwxrwx 1 root root 12 Jan 7 16:25 test_link ->
test/test.sh
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list