summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2017-02-22 13:16:03 +0100
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-03-04 15:05:09 +0100
commitff48401963c73a299373a61bca14b60519e4e3c1 (patch)
treed9ad755634776927651e45d43cebef99bd676ffa /makechrootpkg.in
parent15f16162fb960e496c971b2be45b5155e0f4427b (diff)
downloaddevtools-ff48401963c73a299373a61bca14b60519e4e3c1.tar.xz
makechrootpkg: fix potential non-writable directories of builduser in /build
This removes the preservation of HOME being /build just for the pacman sudo call. Former leads to unbuildable packages when an to be installed dependency writes something into the HOME dir (f.e. .config). The resulting directories won't be writable by the builduser as they are owned by root:root and ultimately will fail to build anything that requires so.
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in1
1 files changed, 0 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index e49bd48..ddf633b 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -173,7 +173,6 @@ prepare_chroot() {
done
cat > "$copydir/etc/sudoers.d/builduser-pacman" <<EOF
-Defaults env_keep += "HOME"
builduser ALL = NOPASSWD: /usr/bin/pacman
EOF
chmod 440 "$copydir/etc/sudoers.d/builduser-pacman"