1 --- nmap-4.03/shtool.mktemp 2006-05-10 13:09:34.000000000 +0200
2 +++ nmap-4.03/shtool 2006-05-10 13:13:58.000000000 +0200
7 - tmpdir="$tmpdir/.shtool.$$"
9 - rm -rf "$tmpdir" >/dev/null 2>&1 || true
10 - mkdir "$tmpdir" >/dev/null 2>&1
11 - if [ $? -ne 0 ]; then
12 - echo "$msgprefix:Error: failed to create temporary directory \`$tmpdir'" 1>&2
16 + tmpdir=`mktemp -p $tmpdir -d`
17 + if [ $? -ne 0 ]; then
18 + echo "$msgprefix:Error: failed to create temporary directory \`$tmpdir'" 1>&2
22 # create (implicitly) secure temporary file
23 tmpfile="$tmpdir/shtool.tmp"