This commit is contained in:
Patrick Schleizer 2025-05-21 12:29:01 -04:00
parent 2c1abb23e0
commit 92d3a36a0f
No known key found for this signature in database
GPG key ID: CB8D50BB77BB3C48

View file

@ -206,7 +206,7 @@ failed_login_counter=$(( pam_faillock_output_count - 2 ))
## Ensuring failed_login_counter is not set to a negative value.
## 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."
failed_login_counter=0
fi