mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-23 11:13:18 +01:00
lib/tools.in(maketemp): really remove insecure fall-back if mktemp is missing, since it is now required at build-time
This commit is contained in:
parent
c8b6aeeb72
commit
c235a7ee87
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user