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