From ec9103850eff192e6e57ba9659b97033bffe9597 Mon Sep 17 00:00:00 2001 From: T Z Date: Thu, 8 Aug 2019 18:07:28 +0200 Subject: [PATCH] Set umask before executing scripts. --- buster-amd64/mkrescue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/buster-amd64/mkrescue b/buster-amd64/mkrescue index 73de91d..422cf7f 100755 --- a/buster-amd64/mkrescue +++ b/buster-amd64/mkrescue @@ -7,6 +7,9 @@ DEBIAN_CODENAME='buster' KERNEL_VERSION='4.19.0-5-amd64' ARCH='amd64' +UMASK_ORIG=$(umask) +umask 022 + if [ -z "${TARGET}" ]; then echo "Usage: $0 " exit 255 @@ -60,3 +63,5 @@ tar cvf ${OUTPUT}/wmirescue_${ARCH}-netboot.tar -C ${OUTPUT}/netboot . ./bin/dist_ipxe ${VERSION} ${OUTPUT} --nofirmware ./bin/dist_iso ${VERSION} ${ARCH} ${OUTPUT} ./bin/dist_iso ${VERSION} ${ARCH} ${OUTPUT} --nofirmware + +umask ${UMASK_ORIG}