[coreboot-gerrit] New patch to review for coreboot: More compatible use of mktemp
Stefan Reinauer (stefan.reinauer@coreboot.org)
gerrit at coreboot.org
Sat Apr 16 00:22:27 CEST 2016
Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14386
-gerrit
commit 6abbe0dee6203d61f6569199414ed9b81a32e9c3
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date: Fri Apr 15 15:20:40 2016 -0700
More compatible use of mktemp
This is taken from FILO and slightly enhanced.
Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
Change-Id: Ieadd9db3f1013ec1cd9f5a1dc44e17587617f1d1
Original-Change-Id: I961a7ddcd39657c9463806d7b82757eff0a4ac57
Original-Signed-off-by: Patrick Georgi <patrick.georgi at secunet.com>
Original-Reviewed-on: http://review.coreboot.org/190
---
util/xcompile/xcompile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index e1fcb31..2479c39 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
More information about the coreboot-gerrit
mailing list