aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-26 20:32:28 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-26 20:32:28 +0100
commit6d6c350479685da0310b11037b9b680242120923 (patch)
tree4d4a4d26ff44d900e80f195d30f89ccef13adfed
parent8ebefdb9abf22b2277caae63aa83b8241e621e6c (diff)
downloadslcl-6d6c350479685da0310b11037b9b680242120923.tar.gz
usergen: Fix password generation
For longer passwords, od(1) might introduce a newline character, causing printf(1) to interpret its input string incorrectly.
-rwxr-xr-xusergen2
1 files changed, 1 insertions, 1 deletions
diff --git a/usergen b/usergen
index e32dd24..bd6b791 100755
--- a/usergen
+++ b/usergen
@@ -9,7 +9,7 @@ usage()
to_hex()
{
- od -An -t x1 | tr -d ' '
+ od -An -t x1 | tr -d ' ' | tr -d '\n'
}
to_bin()