From: Zac Medico Date: Wed, 27 Oct 2010 18:53:47 +0000 (-0700) Subject: Only addwrite for tmp dirs if sandbox is enabled. X-Git-Tag: v2.2.0_alpha2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d68bc7dc973a1f858c9ad244c8f41655694b4baf;p=portage.git Only addwrite for tmp dirs if sandbox is enabled. This should fix bug #307729. --- 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