mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
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.
This commit is contained in:
parent
a16b1c1fd9
commit
bd4dbd7879
1 changed files with 1 additions and 1 deletions
|
|
@ -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;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue