Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/skey Just return if /etc/skeykeys is missing, and re...



details:   https://anonhg.NetBSD.org/src/rev/26be83c73ed9
branches:  trunk
changeset: 495409:26be83c73ed9
user:      mjl <mjl%NetBSD.org@localhost>
date:      Thu Jul 27 14:40:58 2000 +0000

description:
Just return if /etc/skeykeys is missing, and remove debugging echo.

diffstat:

 usr.bin/skey/skeyaudit.sh |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 01d8bf0f5065 -r 26be83c73ed9 usr.bin/skey/skeyaudit.sh
--- a/usr.bin/skey/skeyaudit.sh Thu Jul 27 14:39:50 2000 +0000
+++ b/usr.bin/skey/skeyaudit.sh Thu Jul 27 14:40:58 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $NetBSD: skeyaudit.sh,v 1.3 2000/07/07 15:19:09 mjl Exp $
+#      $NetBSD: skeyaudit.sh,v 1.4 2000/07/27 14:40:58 mjl Exp $
 #
 # This script will look thru the skeykeys file for
 # people with sequence numbers less than LOWLIMIT=12
@@ -22,6 +22,9 @@
  LOWLIMIT=$1
 fi
 
+if [ ! -s "${KEYDB}" ]; then
+  exit 0
+fi
 
 # an skeykeys entry looks like
 #   jsw 0076 la13079          ba20a75528de9d3a
@@ -39,7 +42,7 @@
   SEQ=$2
   KEY=$3
   shift 3
-echo "$USER -- $SEQ -- $KEY"
+  # echo "$USER -- $SEQ -- $KEY"
   if [ $SEQ -lt $LOWLIMIT ]; then
     if [ $SEQ -lt  3 ]; then
       SUBJECT="IMPORTANT action required"



Home | Main Index | Thread Index | Old Index