Skip to content
Snippets Groups Projects
Commit c235a7ee authored by intrigeri's avatar intrigeri
Browse files

lib/tools.in(maketemp): really remove insecure fall-back if mktemp is missing,...

lib/tools.in(maketemp): really remove insecure fall-back if mktemp is missing, since it is now required at build-time
parent c8b6aeeb
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment