From c235a7ee87f28e9c488f2175bf3414056393ca5f Mon Sep 17 00:00:00 2001 From: intrigeri Date: Wed, 25 Jun 2008 09:40:13 +0000 Subject: lib/tools.in(maketemp): really remove insecure fall-back if mktemp is missing, since it is now required at build-time --- lib/tools.in | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'lib/tools.in') diff --git a/lib/tools.in b/lib/tools.in index 37fa212..0005be9 100644 --- a/lib/tools.in +++ b/lib/tools.in @@ -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 + local tempfile=`mktemp /tmp/$1.XXXXXXXX` echo $tempfile } -- cgit v1.2.3