2016-08-25 18:42:57 +00:00
|
|
|
From d2f552900d87b62ca0dbc740902d561bc32f32be Mon Sep 17 00:00:00 2001
|
2016-04-05 19:28:47 +00:00
|
|
|
From: Robert Marshall <rmarshall@redhat.com>
|
|
|
|
Date: Fri, 29 Jan 2016 17:34:02 -0500
|
2016-12-01 22:17:43 +00:00
|
|
|
Subject: [PATCH 77/89] Fix locale issue in grub-setpassword (#1294243)
|
2016-04-05 19:28:47 +00:00
|
|
|
|
|
|
|
A shell substitution was expecting non-translated output to grab the
|
|
|
|
hashed password and put it in the user.cfg file. Modified code to force
|
|
|
|
the generic C locale when this particular piece of code is run.
|
|
|
|
|
|
|
|
Resolves: rhbz#1294243
|
|
|
|
---
|
|
|
|
util/grub-setpassword.in | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/util/grub-setpassword.in b/util/grub-setpassword.in
|
|
|
|
index dd76f00..2923f43 100644
|
|
|
|
--- a/util/grub-setpassword.in
|
|
|
|
+++ b/util/grub-setpassword.in
|
|
|
|
@@ -105,7 +105,7 @@ getpass() {
|
|
|
|
P1="$1" && shift
|
|
|
|
|
|
|
|
( echo ${P0} ; echo ${P1} ) | \
|
|
|
|
- ${grub_mkpasswd} | \
|
|
|
|
+ LC_ALL=C ${grub_mkpasswd} | \
|
|
|
|
grep -v '[eE]nter password:' | \
|
|
|
|
sed -e "s/PBKDF2 hash of your password is //"
|
|
|
|
}
|
|
|
|
--
|
2016-12-01 22:17:43 +00:00
|
|
|
2.9.3
|
2016-04-05 19:28:47 +00:00
|
|
|
|