Only addwrite for tmp dirs if sandbox is enabled.
authorZac Medico <zmedico@gentoo.org>
Wed, 27 Oct 2010 18:53:47 +0000 (11:53 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 27 Oct 2010 19:15:54 +0000 (12:15 -0700)
This should fix bug #307729.

bin/ebuild.sh

index 0d59f4ebd7552310dbba3204d7ce77eb45e6c058..42ca1feb7da22f4749dfed6f9cf069a7dd034e49 100755 (executable)
@@ -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