From bd4dbd7879eb52728cbd0d5bc8b1db0aff3e95d7 Mon Sep 17 00:00:00 2001 From: John Polstra Date: Mon, 5 Feb 2007 16:36:25 +0000 Subject: [PATCH] Use egrep instead of grep so that reporting of login failures (broken by revision 1.6) works again. This fix is already in RELENG_6, but was never committed to HEAD. --- etc/periodic/security/800.loginfail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/periodic/security/800.loginfail b/etc/periodic/security/800.loginfail index d75f95370bf7..6a26f7d89c76 100755 --- a/etc/periodic/security/800.loginfail +++ b/etc/periodic/security/800.loginfail @@ -59,7 +59,7 @@ case "$daily_status_security_loginfail_enable" in [Yy][Ee][Ss]) echo "" echo "${host} login failures:" - n=$(catmsgs | grep -ia "^$yesterday.*(fail|invalid|bad|illegal)" | + n=$(catmsgs | egrep -ia "^$yesterday.*(fail|invalid|bad|illegal)" | tee /dev/stderr | wc -l) [ $n -gt 0 ] && rc=1 || rc=0;; *) rc=0;;