From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 29 10:40:05 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BC72106564A for ; Sun, 29 Jun 2008 10:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2B66F8FC1E for ; Sun, 29 Jun 2008 10:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m5TAe5ws032201 for ; Sun, 29 Jun 2008 10:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m5TAe5e7032200; Sun, 29 Jun 2008 10:40:05 GMT (envelope-from gnats) Date: Sun, 29 Jun 2008 10:40:05 GMT Message-Id: <200806291040.m5TAe5e7032200@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Taku Cc: Subject: Re: conf/124569: [patch] inadequate regular expression in /etc/periodic/security/800.loginfail X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Taku List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jun 2008 10:40:05 -0000 The following reply was made to PR conf/124569; it has been noted by GNATS. From: Taku 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