Bugzilla – Attachment #38239: shtool-2.0.1-fix-insecure-tmp-creation.diff for bug #86168
else
tmpdir="/tmp"
fi
tmpfile="$tmpdir/.shtool.$$"
tmpfile=`mktemp "$tmpdir/.shtool.XXXXXX"`
rm -f $tmpfile >/dev/null 2>&1
touch $tmpfile
chmod 600 $tmpfile
# utility function: map string to lower case