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 37fa2129105ede12e8da22113870056e32a4297b..0005be943c3e3b186c2eabe1a51179615c921acb 100644 (file)
 # create a temporary file in a secure way.
 #
 function maketemp() {
 # 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
 }
 
        echo $tempfile
 }