Patchwork scripts/runqemu: write temp file into correct location

login
register
mail settings
Submitter Paul Eggleton
Date Sept. 24, 2013, 10:52 a.m.
Message ID <1380019959-18268-1-git-send-email-paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/58653/
State Accepted
Commit f79b21a57b31363ce249ec538c1e71de4ed9dfcb
Headers show

Comments

Paul Eggleton - Sept. 24, 2013, 10:52 a.m.
We want the temporary file to be written in /tmp not the current
directory.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 scripts/runqemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/scripts/runqemu b/scripts/runqemu
index efab1a2..eb950bc 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -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