pash: Set LC_ALL=C during password generation

This commit is contained in:
Dylan Araps 2019-11-29 21:14:53 +00:00
parent 374c9bb246
commit 5bc40a5eef
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 1 deletions

2
pash
View File

@ -12,7 +12,7 @@ pw_add() {
# #
# The 'dd' command is then used to read only the desired # The 'dd' command is then used to read only the desired
# password length. # password length.
pass=$(tr -dc "${PASH_PATTERN:-_A-Z-a-z-0-9}" </dev/urandom | pass=$(LC_ALL=C tr -dc "${PASH_PATTERN:-_A-Z-a-z-0-9}" < /dev/urandom |
dd ibs=1 obs=1 count="${PASH_LENGTH:-50}" 2>/dev/null) dd ibs=1 obs=1 count="${PASH_LENGTH:-50}" 2>/dev/null)
else else