mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-30 23:08:35 -04:00
Merge remote-tracking branch 'github-kicksecure/master'
This commit is contained in:
commit
4d1f8c44d2
1 changed files with 3 additions and 3 deletions
|
@ -163,9 +163,9 @@ pam_faillock_output_count="$(echo "$pam_faillock_output" | wc -l)"
|
||||||
## example pam_faillock_output_count:
|
## example pam_faillock_output_count:
|
||||||
## 4
|
## 4
|
||||||
|
|
||||||
## Do not count the first two informational textual output lines
|
## Do not count the first two informational textual output lines (starting with "user:" and "When") if present,
|
||||||
## (starting with "user:" and "When").
|
## whilst ensuring failed_login_counter is not set to a negative value.
|
||||||
failed_login_counter=$(( pam_faillock_output_count - 2 ))
|
failed_login_counter=$( [ $(( pam_faillock_output_count - 2 )) -gt 0 ] && echo $(( pam_faillock_output_count - 2 )) || echo "0" )
|
||||||
|
|
||||||
## example failed_login_counter:
|
## example failed_login_counter:
|
||||||
## 2
|
## 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue