mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-27 15:45:17 -04:00
LANG=C str_replace: no longer requires LANG=C, therefore removed
This commit is contained in:
parent
6aaf708217
commit
7c150d116d
2 changed files with 4 additions and 4 deletions
|
@ -152,7 +152,7 @@ true "pam_faillock_output_first_line: '$pam_faillock_output_first_line'"
|
|||
## example pam_faillock_output_first_line:
|
||||
## user:
|
||||
|
||||
user_name="$(echo "$pam_faillock_output_first_line" | LANG=C str_replace ":" "")"
|
||||
user_name="$(echo "$pam_faillock_output_first_line" | str_replace ":" "")"
|
||||
## example user_name:
|
||||
## user
|
||||
## root
|
||||
|
@ -180,7 +180,7 @@ deny=3
|
|||
|
||||
if test -f /etc/security/faillock.conf ; then
|
||||
deny_line=$(grep --invert-match "#" -- /etc/security/faillock.conf | grep -- "deny =")
|
||||
deny="$(echo "$deny_line" | LANG=C str_replace "=" "" | LANG=C str_replace "deny" "" | LANG=C str_replace " " "")"
|
||||
deny="$(echo "$deny_line" | str_replace "=" "" | str_replace "deny" "" | str_replace " " "")"
|
||||
## Example:
|
||||
#deny=50
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue