[Bug 13406] 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 Jan 27 22:04:29 UTC 2021


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

--- Comment #1 from alt.j2-4o4s2yon at yopmail.com ---
gnu tar defaults to recreate UIDs stored in tarballs by calling chown when the
tarball is extracted as root. this is a super annoying default as it breaks
usage in sandboxes like ones using unshare (if the chown() syscall fails, tar
returns with failure status).
additionally in the internet age 99% of the tarballs the average person
extracts are created by other people on the net, and you certainly don't want
to have files with random UIDs that don't even have associated users on your
box splattered around your fs.
on gnu tar, one has to pass --no-same-owner to get rid of this utterly annoying
default.

i'm glad busybox does it the right way.

arguably it might make sense for use cases like xie's if there would be a flag
that's equivalent to --same-owner for GNU tar.

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


More information about the busybox-cvs mailing list