diff options
author | mtm <mtm@FreeBSD.org> | 2008-06-30 08:01:47 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2008-06-30 08:01:47 +0000 |
commit | b64893bda70709f212d6c9fc12cdb6e7e0a647cd (patch) | |
tree | fb54e35568ca713ded196d98e5434092fa0e1d1c /etc/periodic/security | |
parent | 19803ae742be963cc4db6a5a3e7b04b976946037 (diff) | |
download | FreeBSD-src-b64893bda70709f212d6c9fc12cdb6e7e0a647cd.zip FreeBSD-src-b64893bda70709f212d6c9fc12cdb6e7e0a647cd.tar.gz |
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>
Diffstat (limited to 'etc/periodic/security')
-rwxr-xr-x | etc/periodic/security/800.loginfail | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/security/800.loginfail b/etc/periodic/security/800.loginfail index 38aeb02..767b959 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 | 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;; |