diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-09-27 15:41:38 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-09-27 15:41:38 +0000 |
commit | 0c666f9f5fa37375bb5e779f351ddb12947fd258 (patch) | |
tree | 39f8d56781966a8d9d4a1c6510ad682703ccb9fd /usr.bin/skey/skeyaudit.sh | |
parent | d5dd91cdf59d18f9cfff6072a73247438e00ea4e (diff) |
Now can both MD4 and MD5 skey's.
Diffstat (limited to 'usr.bin/skey/skeyaudit.sh')
-rw-r--r-- | usr.bin/skey/skeyaudit.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/skey/skeyaudit.sh b/usr.bin/skey/skeyaudit.sh index 7f617923f5a..51711b447ff 100644 --- a/usr.bin/skey/skeyaudit.sh +++ b/usr.bin/skey/skeyaudit.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: skeyaudit.sh,v 1.2 1996/06/26 05:39:21 deraadt Exp $ +# $OpenBSD: skeyaudit.sh,v 1.3 1996/09/27 15:41:36 millert Exp $ # This script will look thru the skeykeys file for # people with sequence numbers less then LOWLIMIT=12 # and send them an e-mail reminder to use skeyinit soon @@ -28,10 +28,10 @@ fi for i in `$AWK '{print $1}' $KEYDB` do -SEQ=`$GREP "^$i[ ]" $KEYDB | $AWK '{print $2}'` +SEQ=`$GREP "^$i[ ]" $KEYDB | $AWK '{if ($2 ~ /^MD[0-9]+/) {print $3} else {print $2}}'` if [ $SEQ -lt $LOWLIMIT ] then - KEY=`$GREP "^$i[ ]" $KEYDB | $AWK '{print $3}'` + KEY=`$GREP "^$i[ ]" $KEYDB | $AWK '{if ($2 ~ /^MD[0-9]+/) {print $4} else {print $3}}'` if [ $SEQ -lt 3 ] then SUBJECT="IMPORTANT action required" |