From e76a1b2defac8fcbd2378e1c27577cb2c6548695 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 17 Mar 2008 12:55:24 -0500 Subject: Set $HOME before dropping permissions Because we need a root user to chroot, when we drop permissions to 'nobody', we're still using HOME=/root Signed-off-by: Aaron Griffin --- makechrootpkg | 1 + 1 file changed, 1 insertion(+) (limited to 'makechrootpkg') diff --git a/makechrootpkg b/makechrootpkg index 4c37dfc..58983e3 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -180,6 +180,7 @@ fi #!/bin/bash export LANG=$LOCALE cd /build +export HOME=/build sudo -u nobody makepkg $MAKEPKG_ARGS || touch BUILD_FAILED EOF ) > "$uniondir/chrootbuild" -- cgit v1.2.3-24-g4f1b