lib/tools.in(maketemp): really remove insecure fall-back if mktemp is missing, since it is now required at build-time

This commit is contained in:
intrigeri 2008-06-25 09:40:13 +00:00
parent c8b6aeeb72
commit c235a7ee87

View File

@ -10,14 +10,7 @@
# create a temporary file in a secure way.
#
function maketemp() {
if [ -x /bin/mktemp ]
then
local tempfile=`mktemp /tmp/$1.XXXXXXXX`
else
DATE=`date`
sectmp=`echo $DATE | @MD5SUM@ | cut -d- -f1`
local tempfile=/tmp/$1.$sectmp
fi
echo $tempfile
}