mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-29 09:32:47 +00:00
Updated all modules that use tmpdir.sh
This commit is contained in:
@@ -40,7 +40,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
|
||||
}
|
||||
|
Reference in New Issue
Block a user