From 95ae17941bacec170640ef707bb760cd069e3342 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Wed, 25 Jun 2008 09:40:13 +0000 Subject: [PATCH] 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 --- lib/tools.in | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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 } -- 2.30.2