| Summary: | The uid and gid of the soft link is changed after decompressing with the busybox tar | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | xiechengliang <xiechengliang1> |
| Component: | Other | Assignee: | unassigned |
| Status: | NEW --- | ||
| Severity: | normal | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | 1.31.x | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
xiechengliang
2020-12-23 06:39:26 UTC
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. |