From 8e03b4816f2383cd8663317dcc7d606f25022ef3 Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Wed, 5 Dec 2018 12:53:17 +0300 Subject: [PATCH] mktemp usage fixed --- agen5/mk-stamps.sh | 2 +- build-aux/run-ag.sh | 2 +- config/mk-shdefs.in | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agen5/mk-stamps.sh b/agen5/mk-stamps.sh index 49269cf..b9a97fe 100644 --- a/agen5/mk-stamps.sh +++ b/agen5/mk-stamps.sh @@ -28,7 +28,7 @@ # because some of the rules are complex and we don't want to # deal with the dual update problem. -STAMP_TEMP_DIR=$(mktemp --suffix=.tdir -d /tmp/mk-stamps-XXXXXXXX) +STAMP_TEMP_DIR=$(mktemp -d /tmp/mk-stamps-XXXXXXXX) exec 9>&2 2>> ${STAMP_TEMP_DIR}/mk-stamps.log stop_tracing=: if (shopt -qo xtrace) diff --git a/build-aux/run-ag.sh b/build-aux/run-ag.sh index 6ee7b85..e279865 100644 --- a/build-aux/run-ag.sh +++ b/build-aux/run-ag.sh @@ -45,7 +45,7 @@ find_exe() { return 0 } -STAMP_TEMP_DIR=$(mktemp --suffix=.tdir -d /tmp/run-ag-XXXXXXXX) +STAMP_TEMP_DIR=$(mktemp -d /tmp/run-ag-XXXXXXXX) exec 9>&2 2>> ${STAMP_TEMP_DIR}/mk-stamps.log VERBOSE=1 diff --git a/config/mk-shdefs.in b/config/mk-shdefs.in index 68aed2a..6c6c1b2 100644 --- a/config/mk-shdefs.in +++ b/config/mk-shdefs.in @@ -130,7 +130,7 @@ configure() { set -x exec 9>&2 -tmp=$(mktemp --suffix=.tdir -d /tmp/shdefs-XXXXXXXXX) +tmp=$(mktemp -d /tmp/shdefs-XXXXXXXXX) exec 2>> $tmp/mk-shdef.log init $0 $1 mk_config -- 2.34.1