diff options
author | Daniel Janus <dj@danieljanus.pl> | 2019-07-17 10:06:54 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-07-17 14:26:45 +0200 |
commit | c22cdbd4674a25dec71fe42ec1ef0b4829b6c7f3 (patch) | |
tree | 8b38cb48a51b98961507b9fa8cd21709e99a760e /src | |
parent | 5a52772156b44ef9785e91ab78ab2e1c3b1e510e (diff) |
Account for missing [:graph:] on Busybox by using [:alnum:][:punct:]
Some implementations of tr (notably the ones in Busybox and Toybox) do
not support the [:graph:] character class, but they do support
[:punct:] and [:alnum:]. This makes pass generate sane passwords
in such environments.
Discussed-on: https://lists.zx2c4.com/pipermail/password-store/2019-July/003702.html
Diffstat (limited to 'src')
-rwxr-xr-x | src/password-store.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh index b99460c..1d119f2 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -17,7 +17,7 @@ EXTENSIONS="${PASSWORD_STORE_EXTENSIONS_DIR:-$PREFIX/.extensions}" X_SELECTION="${PASSWORD_STORE_X_SELECTION:-clipboard}" CLIP_TIME="${PASSWORD_STORE_CLIP_TIME:-45}" GENERATED_LENGTH="${PASSWORD_STORE_GENERATED_LENGTH:-25}" -CHARACTER_SET="${PASSWORD_STORE_CHARACTER_SET:-[:graph:]}" +CHARACTER_SET="${PASSWORD_STORE_CHARACTER_SET:-[:punct:][:alnum:]}" CHARACTER_SET_NO_SYMBOLS="${PASSWORD_STORE_CHARACTER_SET_NO_SYMBOLS:-[:alnum:]}" export GIT_CEILING_DIRECTORIES="$PREFIX/.." |