1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00

Rev. 1.8 broke matching on lines where the failure mode is at the head

of the message, such as:
  Jun 30 10:49:21 rogue sshd[17553]: Invalid user iceman from 127.0.0.1

PR: conf/124569
Submitted by:	Taku <taku@tekipaki.jp>
This commit is contained in:
Mike Makonnen 2008-06-30 08:01:47 +00:00
parent f8635870a4
commit 10df26f936
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180111

View File

@ -59,7 +59,7 @@ case "$daily_status_security_loginfail_enable" in
[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;;