From 40a90e2cab479cc64903a62b42eb617a8a7e5842 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 28 Mar 2019 17:40:47 -0400 Subject: ensure that sane umask is used where needed If a user umask is restrictive, a chroot may be created as root without the ability for the user to read it, which then causes makepkg --verifysource to fail. Do not set this in lib/common.sh, where it would apply to all scripts, as we do not want to override the user's policy for things like $SRCDEST files, svn checkouts, etc. Fixes FS#47625 Signed-off-by: Eli Schwartz Signed-off-by: Levente Polyak --- arch-nspawn.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch-nspawn.in') diff --git a/arch-nspawn.in b/arch-nspawn.in index fb2b53e..8a87b96 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -13,6 +13,10 @@ m4_include(lib/common.sh) m4_include(lib/archroot.sh) +# umask might have been changed in /etc/profile +# ensure that sane default is set again +umask 0022 + working_dir='' files=() -- cgit v1.2.3-54-g00ecf