summaryrefslogtreecommitdiff
path: root/util/xcompile
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2016-04-15 15:20:40 -0700
committerMartin Roth <martinroth@google.com>2016-04-18 15:59:22 +0200
commitb194a43397c89f6379a9ff560fd4640d6749e92f (patch)
tree17cdb8b9167085eaa6e67b24afb8afe29073066e /util/xcompile
parent41f0e0fd4dcb630f48d11dc5d7c6fde87ae1c995 (diff)
downloadcoreboot-b194a43397c89f6379a9ff560fd4640d6749e92f.tar.xz
More compatible use of mktemp
This is taken from FILO and slightly enhanced. Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Change-Id: Ieadd9db3f1013ec1cd9f5a1dc44e17587617f1d1 Original-Change-Id: I961a7ddcd39657c9463806d7b82757eff0a4ac57 Original-Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Original-Reviewed-on: http://review.coreboot.org/190 Reviewed-on: https://review.coreboot.org/14386 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/xcompile')
-rwxr-xr-xutil/xcompile/xcompile2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index e1fcb31cc0..2479c39195 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -51,7 +51,7 @@ clean_up() {
}
# Create temporary file(s).
-TMPFILE="$(mktemp /tmp/temp.XXXX 2>/dev/null || echo /tmp/temp.78gOIUGz)"
+TMPFILE="$(mktemp /tmp/temp.XXXXXX 2>/dev/null || echo /tmp/temp.coreboot.$RANDOM)"
touch "$TMPFILE"
trap clean_up EXIT