From: intrigeri Date: Wed, 25 Jun 2008 09:40:13 +0000 (+0000) Subject: lib/tools.in(maketemp): really remove insecure fall-back if mktemp is missing, since... X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=95ae17941bacec170640ef707bb760cd069e3342;p=matthijs%2Fupstream%2Fbackupninja.git lib/tools.in(maketemp): really remove insecure fall-back if mktemp is missing, since it is now required at build-time git-svn-id: http://code.autistici.org/svn/backupninja/trunk@590 758a04ac-41e6-0310-8a23-8373a73cc35d --- 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 }