lib/tools.in(maketemp): really remove insecure fall-back if mktemp is missing, since...
authorintrigeri <intrigeri@boum.org>
Wed, 25 Jun 2008 09:40:13 +0000 (09:40 +0000)
committerintrigeri <intrigeri@boum.org>
Wed, 25 Jun 2008 09:40:13 +0000 (09:40 +0000)
lib/tools.in

index 37fa212..0005be9 100644 (file)
 # 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
+       local tempfile=`mktemp /tmp/$1.XXXXXXXX`
        echo $tempfile
 }