summaryrefslogtreecommitdiff
path: root/buildtools
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 /buildtools
parent8f3ea0a03dce3d42f83915201395605d4b63d347 (diff)
downloaddpdk-next-eventdev-ff37ca5d3773b7c82ad9b3d7e212e8ae7d39fc1a.zip
dpdk-next-eventdev-ff37ca5d3773b7c82ad9b3d7e212e8ae7d39fc1a.tar.gz
dpdk-next-eventdev-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 'buildtools')
-rwxr-xr-xbuildtools/auto-config-h.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/auto-config-h.sh b/buildtools/auto-config-h.sh
index d28a5c3..6130429 100755
--- a/buildtools/auto-config-h.sh
+++ b/buildtools/auto-config-h.sh
@@ -23,7 +23,7 @@ name=${5:?define/type/function name required}
: ${CC:=cc}
-temp=/tmp/${0##*/}.$$.c
+temp=$(mktemp -t dpdk.${0##*/}.XXX.c)
case $type in
define)