diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-03-17 12:55:24 -0500 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-03-17 12:55:24 -0500 |
commit | e76a1b2defac8fcbd2378e1c27577cb2c6548695 (patch) | |
tree | 10fcad0b94d8ac021c7d41e4602b1976dc78a2e5 /makechrootpkg | |
parent | e8490b3f14d887216f02a10e9a4cf9012fa577c8 (diff) | |
download | devtools-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-x | makechrootpkg | 1 |
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" |