]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/autoconf/randpass
Fix bug in build-win32-cross-tools script reported by Howard
[bacula/bacula] / bacula / autoconf / randpass
index b233e24efcea7a9a049a7722ba27a030c28b8aa4..af30bfb929bbf4e455085ea84247821fbf8223d7 100755 (executable)
@@ -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