Date: Sun, 29 Jun 2008 10:40:05 GMT From: Taku <taku@tekipaki.jp> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/124569: [patch] inadequate regular expression in /etc/periodic/security/800.loginfail Message-ID: <200806291040.m5TAe5e7032200@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/124569; it has been noted by GNATS. From: Taku <taku@tekipaki.jp> To: bug-followup@FreeBSD.org, taku@tekipaki.jp Cc: Subject: Re: conf/124569: [patch] inadequate regular expression in /etc/periodic/security/800.loginfail Date: Sun, 29 Jun 2008 19:33:24 +0900 Here is a revised patch for conf/124569. --- /etc/periodic/security/800.loginfail.orig 2008-02-25 02:53:19.000000000 +0900 +++ /etc/periodic/security/800.loginfail 2008-06-30 02:46:05.000000000 +0900 @@ -59,7 +59,7 @@ [Yy][Ee][Ss]) echo "" echo "${host} login failures:" - n=$(catmsgs | egrep -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;; Regards, Taku
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806291040.m5TAe5e7032200>