Skip to contentSkip to conversation

scripts/runqemu: write temp file into correct location

PATCH New Paul Eggleton 1 participant 1 message Sep 24, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/runqemu: write temp file into correct location

We want the temporary file to be written in /tmp not the current directory.

---
 scripts/runqemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/runqemu +1 -1
index efab1a2..eb950bc 100755
@@ -340,7 +340,7 @@ setup_path_vars() {
             exit 1; }
 
         # We have bitbake in PATH, get the variable values from bitbake
-        BITBAKE_ENV_TMPFILE=`mktemp runqemu.XXXXXXXXXX`
+        BITBAKE_ENV_TMPFILE=`mktemp --tmpdir runqemu.XXXXXXXXXX`
         if [ "$?" != "0" ] ; then
             echo "Error: mktemp failed for bitbake environment output"
             exit 1
Signature · 1 line
1.8.1.2