From abb2f1fad0cc6494169abb3e9a486f6f46c6c647 Mon Sep 17 00:00:00 2001 From: dhirsbrunner <53242025+dhirsbrunner@users.noreply.github.com> Date: Tue, 23 Jul 2019 20:57:19 -0500 Subject: [PATCH] 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". --- package-source.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }