summaryrefslogtreecommitdiff
path: root/archbuild.in
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2019-03-28 17:40:47 -0400
committerLevente Polyak <anthraxx@archlinux.org>2019-08-09 19:41:52 +0200
commit40a90e2cab479cc64903a62b42eb617a8a7e5842 (patch)
treeb4937b668a023e6582e9125e3fd1cf601ab4ed7a /archbuild.in
parent74a664194602edf042b38869858e5a601e7f91dd (diff)
downloaddevtools32-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 'archbuild.in')
-rw-r--r--archbuild.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/archbuild.in b/archbuild.in
index 163a108..709d70d 100644
--- a/archbuild.in
+++ b/archbuild.in
@@ -59,7 +59,7 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
lock_close 9
rm -rf --one-file-system "${chroots}/${repo}-${arch}"
- mkdir -p "${chroots}/${repo}-${arch}"
+ mkdir -m755 -p "${chroots}/${repo}-${arch}"
setarch "${arch}" mkarchroot \
-C "@pkgdatadir@/pacman-${repo}.conf" \
-M "@pkgdatadir@/makepkg-${arch}.conf" \