projects
/
matthijs
/
upstream
/
backupninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8b6aee
)
lib/tools.in(maketemp): really remove insecure fall-back if mktemp is missing, since...
author
intrigeri
<intrigeri@boum.org>
Wed, 25 Jun 2008 09:40:13 +0000
(09:40 +0000)
committer
intrigeri
<intrigeri@boum.org>
Wed, 25 Jun 2008 09:40:13 +0000
(09:40 +0000)
lib/tools.in
patch
|
blob
|
history
diff --git
a/lib/tools.in
b/lib/tools.in
index 37fa2129105ede12e8da22113870056e32a4297b..0005be943c3e3b186c2eabe1a51179615c921acb 100644
(file)
--- 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
}