diff options
Diffstat (limited to 'app-backup/bacula/files/randpass-1.37.40')
-rw-r--r-- | app-backup/bacula/files/randpass-1.37.40 | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/app-backup/bacula/files/randpass-1.37.40 b/app-backup/bacula/files/randpass-1.37.40 deleted file mode 100644 index af30bfb..0000000 --- a/app-backup/bacula/files/randpass-1.37.40 +++ /dev/null @@ -1,26 +0,0 @@ -#! /bin/sh -# -# Generate a random password, written to standard output -# By John Walker -# -if test "x$1" = "x" ; then - PWL=48 # Password length in characters -else - PWL=$1 -fi -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 -ls -l /tmp | sum | tr -d ':[:alpha:] ' | sed 's/^/k=k*/' >>$tmp -echo "j=s(k); for (i = 0; i < $PWL; i++) r()" >>$tmp -echo "quit" >>$tmp -bc $tmp | awk -f autoconf/randpass.awk -rm $tmp |