diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-10-27 11:53:47 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-10-27 11:53:47 -0700 |
commit | d68bc7dc973a1f858c9ad244c8f41655694b4baf (patch) | |
tree | c073cdd57abd687cdfdb99225bf096d76413f0ac | |
parent | 60e15f59ad0e54cd010d2266d699b95b035e8e47 (diff) | |
download | portage-d68bc7dc973a1f858c9ad244c8f41655694b4baf.tar.gz portage-d68bc7dc973a1f858c9ad244c8f41655694b4baf.tar.bz2 portage-d68bc7dc973a1f858c9ad244c8f41655694b4baf.zip |
Only addwrite for tmp dirs if sandbox is enabled.
This should fix bug #307729.
-rwxr-xr-x | bin/ebuild.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 0d59f4ebd..42ca1feb7 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -106,7 +106,7 @@ if [[ -w $T ]] ; then export TEMP=$T export TMP=$T export TMPDIR=$T -else +elif [[ $SANDBOX_ON = 1 ]] ; then for x in TEMP TMP TMPDIR ; do [[ -n ${!x} ]] && addwrite "${!x}" done |