aboutsummaryrefslogtreecommitdiff
path: root/package-source.bash
diff options
context:
space:
mode:
authordhirsbrunner2019-07-23 20:57:19 -0500
committerrfjakob2019-07-29 11:06:49 +0200
commitabb2f1fad0cc6494169abb3e9a486f6f46c6c647 (patch)
tree24e01b95f403777749e74a44951d2798072f24f4 /package-source.bash
parentb1468a732fa26550f2a6f8a21cc7bd47b65a8c96 (diff)
Prevent local user ID from appearing in source tarballs
The local user ID (1026 jakob) appears in the source tarballs gocryptfs_v1.7_src.tar.gz and gocryptfs_v1.7_src-deps.tar.gz as the owner of VERSION, Documentation, and vendor. This issue is already fixed for the binary releases by commit 07f57314afb260d6b14227b932d66345c55ffab3, and the solution here is the same: use "tar --owner=root --group=root".
Diffstat (limited to 'package-source.bash')
-rwxr-xr-xpackage-source.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/package-source.bash b/package-source.bash
index 1b54301..bc9e249 100755
--- a/package-source.bash
+++ b/package-source.bash
@@ -8,7 +8,7 @@ git_archive_extra() {
# Add files tracked in git
git archive --prefix "$PREFIX/" -o $PREFIX.tar HEAD
# Add "extra" files
- tar --transform "s!^!$PREFIX/!" --append -f $PREFIX.tar "$@"
+ tar --owner=root --group=root --transform "s!^!$PREFIX/!" --append -f $PREFIX.tar "$@"
# Compress
gzip -f $PREFIX.tar
}