summaryrefslogtreecommitdiff
path: root/devtools/check-includes.sh
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2018-09-19 19:16:29 +0200
committerThomas Monjalon <thomas@monjalon.net>2018-10-01 23:51:45 +0200
commitff37ca5d3773b7c82ad9b3d7e212e8ae7d39fc1a (patch)
treee3a659fd8b9d67699e685f8ad65237687daff1cd /devtools/check-includes.sh
parent8f3ea0a03dce3d42f83915201395605d4b63d347 (diff)
downloaddpdk-ff37ca5d3773b7c82ad9b3d7e212e8ae7d39fc1a.zip
dpdk-ff37ca5d3773b7c82ad9b3d7e212e8ae7d39fc1a.tar.gz
dpdk-ff37ca5d3773b7c82ad9b3d7e212e8ae7d39fc1a.tar.xz
devtools: use a common prefix for temporary files
Some temporary files were generated in /tmp, others in the current directory, and none was "dpdk prefixed". All these files have a common path prefix now: $TMPDIR/dpdk. TMPDIR is /tmp by default. Note: the previous use of mktemp, with a template but without -t, was generating a file in the current directory. Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'devtools/check-includes.sh')
-rwxr-xr-xdevtools/check-includes.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/devtools/check-includes.sh b/devtools/check-includes.sh
index 9057633..ba9d00b 100755
--- a/devtools/check-includes.sh
+++ b/devtools/check-includes.sh
@@ -90,11 +90,11 @@ include_dir=${1:-build/include}
'rte_eth_vhost.h' \
}
-temp_cc=/tmp/${0##*/}.$$.c
+temp_cc=$(mktemp -t dpdk.${0##*/}.XXX.c)
pass_cc=
failures_cc=0
-temp_cxx=/tmp/${0##*/}.$$.cc
+temp_cxx=$(mktemp -t dpdk.${0##*/}.XXX.cc)
pass_cxx=
failures_cxx=0