Skip to content

Commit

Permalink
set uid and gid to 0 when putting files in tarball
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Jolly <kangie@gentoo.org>
  • Loading branch information
Kangie committed Dec 1, 2024
1 parent f70bfed commit acf7c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion niche/generate-docs.bashlib
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ generate-docs_create_tarball() {
# within the tarball for posterity.
cp {${0},$(dirname ${BASH_SOURCE}/generate-docs.bashlib)} "${dir}"/${P}-docs/ || { eerror "Failed to embed script within tarball. Exiting!" ; exit 1 ; }

tar -caf "${dir}"/${P}-docs.tar.xz -C "${dir}" ${P}-docs/
tar --owner=0 --group=0 -caf "${dir}"/${P}-docs.tar.xz -C "${dir}" ${P}-docs/
eend ${?} || { eerror "Creating tarball failed!" ; exit 1 ; }

einfo "Tarball at ${dir}/${P}-docs.tar.xz"
Expand Down

0 comments on commit acf7c43

Please sign in to comment.