From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Sun, 6 Apr 2014 16:50:14 +0200 Subject: [Buildroot] [PATCH] support/check-kernel-headers: use mktemp instead of hand-crafted temp file Message-ID: <1396795814-14875-1-git-send-email-yann.morin.1998@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net From: "Yann E. MORIN" Instead of creating a temporary files with a dubious scheme, use mktemp, which purpose is exactly that: creating temporary files Reported-by: Thomas Petazzoni Signed-off-by: "Yann E. MORIN" --- support/scripts/check-kernel-headers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/scripts/check-kernel-headers.sh b/support/scripts/check-kernel-headers.sh index b511a08..445faa6 100755 --- a/support/scripts/check-kernel-headers.sh +++ b/support/scripts/check-kernel-headers.sh @@ -8,7 +8,7 @@ HDR_M="${HDR_VER%%.*}" HDR_V="${HDR_VER#*.}" HDR_m="${HDR_V%%.*}" -EXEC="/tmp/br.check-headers.$(uuidgen)" +EXEC="$( mktemp --tmpdir check-headers.XXXXXX )" # By the time we get here, we do not always have the staging-dir # already populated (think external toolchain), so we can not use -- 1.8.3.2