From: Zac Medico <zmedico@gentoo.org> Date: Wed, 27 Oct 2010 18:53:47 +0000 (-0700) Subject: Only addwrite for tmp dirs if sandbox is enabled. X-Git-Tag: v2.1.9.23~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=62ee18d9e9ce30edfd49d233936de36d88606dcc;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