lib/tools.in(maketemp): really remove insecure fall-back if mktemp is missing, since...
authorintrigeri <intrigeri@758a04ac-41e6-0310-8a23-8373a73cc35d>
Wed, 25 Jun 2008 09:40:13 +0000 (09:40 +0000)
committerintrigeri <intrigeri@758a04ac-41e6-0310-8a23-8373a73cc35d>
Wed, 25 Jun 2008 09:40:13 +0000 (09:40 +0000)
git-svn-id: http://code.autistici.org/svn/backupninja/trunk@590 758a04ac-41e6-0310-8a23-8373a73cc35d

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
 }