mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-11 15:22:51 -04:00
fix
This commit is contained in:
parent
2c1abb23e0
commit
92d3a36a0f
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ failed_login_counter=$(( pam_faillock_output_count - 2 ))
|
||||||
|
|
||||||
## Ensuring failed_login_counter is not set to a negative value.
|
## Ensuring failed_login_counter is not set to a negative value.
|
||||||
## https://github.com/Kicksecure/security-misc/pull/305
|
## https://github.com/Kicksecure/security-misc/pull/305
|
||||||
if [ "$failed_login_counter" -le "0" ]; then
|
if [ "$failed_login_counter" -lt "0" ]; then
|
||||||
true "$0: WARNING: Failed login counter is negative. Resetting to 0."
|
true "$0: WARNING: Failed login counter is negative. Resetting to 0."
|
||||||
failed_login_counter=0
|
failed_login_counter=0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue