aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-06-25 09:40:13 +0000
committerintrigeri <intrigeri@boum.org>2008-06-25 09:40:13 +0000
commitc235a7ee87f28e9c488f2175bf3414056393ca5f (patch)
treeeefec242401c32fb81df9d9ba16eff50ffac637d
parentc8b6aeeb72350d49097239789467fc9fe6b56e2a (diff)
downloadbackupninja-c235a7ee87f28e9c488f2175bf3414056393ca5f.tar.gz
backupninja-c235a7ee87f28e9c488f2175bf3414056393ca5f.tar.bz2
lib/tools.in(maketemp): really remove insecure fall-back if mktemp is missing, since it is now required at build-time
-rw-r--r--lib/tools.in9
1 files changed, 1 insertions, 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
}