X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fautoconf%2Frandpass;h=af30bfb929bbf4e455085ea84247821fbf8223d7;hb=fc92e04201e428fbf206dbd01518a02490ba50f9;hp=b233e24efcea7a9a049a7722ba27a030c28b8aa4;hpb=40b3afb988ac3acbba09fbe633af7c103d61b915;p=bacula%2Fbacula diff --git a/bacula/autoconf/randpass b/bacula/autoconf/randpass index b233e24efc..af30bfb929 100755 --- a/bacula/autoconf/randpass +++ b/bacula/autoconf/randpass @@ -8,7 +8,14 @@ if test "x$1" = "x" ; then else PWL=$1 fi -tmp=/tmp/p.tmp.$$ +tmp=`mktemp randpass.XXXXXXXXXX` +if test x$tmp = x; then + tmp=/tmp/p.tmp.$$ + if test -f $tmp; then + echo "Temp file security problem on: $tmp" + exit 1 + fi +fi cp autoconf/randpass.bc $tmp ps | sum | tr -d ':[:alpha:] ' | sed 's/^/k=/' >>$tmp date | tr -d ':[:alpha:] ' | sed 's/^/k=k*/' >>$tmp