diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2019-03-28 17:40:47 -0400 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2019-08-09 19:41:52 +0200 |
commit | 40a90e2cab479cc64903a62b42eb617a8a7e5842 (patch) | |
tree | b4937b668a023e6582e9125e3fd1cf601ab4ed7a /mkarchroot.in | |
parent | 74a664194602edf042b38869858e5a601e7f91dd (diff) | |
download | devtools-40a90e2cab479cc64903a62b42eb617a8a7e5842.tar.xz |
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 <eschwartz@archlinux.org>
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'mkarchroot.in')
-rw-r--r-- | mkarchroot.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mkarchroot.in b/mkarchroot.in index 7da19dc..6c42d3b 100644 --- a/mkarchroot.in +++ b/mkarchroot.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=() |