[vlc-devel] [PATCH] contrib: force uid/gid during tarball extractions
alexandre.janniaux at gmail.com
Thu Jan 10 20:24:03 CET 2019
Le jeu. 10 janv. 2019 à 13:49, Konstantin Pavlov <thresh at videolan.org> a écrit :
> Yeah, this wont work on macOS, since apple tar does not support it.
> Surprisingly, it works on bsd tar.
It seems that the `--no-same-owner` option can be replaced by the `-o` option.
GNU TAR man:
> Compatibility options
> -o When creating, same as --old-archive. When extracting, same as --no-same-owner.
OSX TAR man:
> -o (x mode) Use the user and group of the user running the program rather than those specified in the archive.
> Note that this has no significance unless -p is specified, and the program is being run by the root user.
> In this case, the file modes and flags from the archive will be restored, but ACLs or owner information in the archive will be discarded.
BSD TAR part is like the OSX TAR one.
Tested and working on linux.
More information about the vlc-devel