summaryrefslogtreecommitdiff
path: root/makechrootpkg
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-03-17 12:55:24 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2008-03-17 12:55:24 -0500
commite76a1b2defac8fcbd2378e1c27577cb2c6548695 (patch)
tree10fcad0b94d8ac021c7d41e4602b1976dc78a2e5 /makechrootpkg
parente8490b3f14d887216f02a10e9a4cf9012fa577c8 (diff)
downloaddevtools32-e76a1b2defac8fcbd2378e1c27577cb2c6548695.tar.xz
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 <aaronmgriffin@gmail.com>
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-xmakechrootpkg1
1 files changed, 1 insertions, 0 deletions
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"