diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-04-06 16:59:28 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-04-06 17:12:04 +0200 |
commit | 78b862186555bf82e0744e2890cb3c732af59e5c (patch) | |
tree | 0253385522e204b37eeaaa8f1aa1eb31fb4d2940 /support/scripts/check-kernel-headers.sh | |
parent | c8adf619dc9eef468a25694def2ae6c89f415bc8 (diff) | |
download | buildroot-78b862186555bf82e0744e2890cb3c732af59e5c.tar.gz buildroot-78b862186555bf82e0744e2890cb3c732af59e5c.zip |
support/check-kernel-headers: use mktemp instead of hand-crafted temp file
Instead of creating a temporary files with a dubious scheme, use mktemp,
which purpose is exactly that: creating temporary files
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/scripts/check-kernel-headers.sh')
-rwxr-xr-x | support/scripts/check-kernel-headers.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/scripts/check-kernel-headers.sh b/support/scripts/check-kernel-headers.sh index b511a086c1..2a0a301eda 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 |