Updated all modules that use tmpdir.sh

This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-06-11 17:10:40 -03:00
parent 07081d5761
commit 9e677a7826
7 changed files with 14 additions and 7 deletions

View File

@@ -452,7 +452,8 @@ mk_tmpdir() {
else
local tool="${0##*/}"
local pid="$$"
TMPDIR=`mktemp -d /tmp/${tool}.${pid}.XXXXXX` \
local x="$TMPDIR"
TMPDIR=`TMPDIR="$x" mktemp -d -t "${tool}.${pid}.XXXXXX"` \
|| die "Cannot make secure tmpdir"
fi
}