From 807378eeb2a1363a10e4c9715758004df5c51500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 6 Dec 2020 15:44:12 +0100 Subject: [PATCH] create_tarball: Force file permissions in the tarball. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It addresses independence from UMASK to ensure a reproducible build. Signed-off-by: Slávek Banko --- create_tarball | 1 + 1 file changed, 1 insertion(+) diff --git a/create_tarball b/create_tarball index 4035d33..62abb6d 100755 --- a/create_tarball +++ b/create_tarball @@ -154,6 +154,7 @@ if [ ! -e $TARBALL_DIR/$package.tar$TAR_SUFFIX ]; then trap "rm $TARBALL_DIR/tar-$$; rm .tdescminfo; exit 1" INT find ./ -print0 | LC_ALL=C sort -z | \ tar c --no-recursion --null -T - \ + --mode=u+rw,go=rX,a-s \ --mtime "@$(git log -1 --pretty=format:"%ct")" \ --owner=root --group=users --exclude .git --exclude .gitmodules \ --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \