Export TMPDIR to make tmpdir.t pass.

This commit is contained in:
Daniel Nichter
2012-06-11 13:28:14 -07:00
parent 9e677a7826
commit bf2a769536
2 changed files with 4 additions and 6 deletions

View File

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