[chrony] on first start generate password with 16 chars
Miroslav Lichvar
mlichvar at fedoraproject.org
Tue Sep 6 15:20:26 UTC 2011
commit 87e9b122a800132c34400f6cb7ca90f7d5147290
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Tue Sep 6 15:45:43 2011 +0200
on first start generate password with 16 chars
chrony.helper | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/chrony.helper b/chrony.helper
index a5bbf84..34add5f 100644
--- a/chrony.helper
+++ b/chrony.helper
@@ -32,7 +32,7 @@ generate_commandkey() {
commandkey=$(get_key $commandkeyid)
[ -z "$commandkey" ] || return 0
- commandkey=$(tr -c -d '[\041-\176]' < /dev/urandom | head -c 8)
+ commandkey=$(tr -c -d '[\041-\176]' < /dev/urandom | head -c 16)
[ -n "$commandkey" ] && echo "$commandkeyid $commandkey" >> $keyfile
}
More information about the scm-commits
mailing list