2018-04-11 18:42:03 +00:00
|
|
|
From 373adc50cf9f09015e40ffd1bf79ab9f291f4fc2 Mon Sep 17 00:00:00 2001
|
2016-04-05 19:28:47 +00:00
|
|
|
From: Robert Marshall <rmarshall@redhat.com>
|
2017-06-16 19:31:32 +00:00
|
|
|
Date: Fri, 29 Jan 2016 16:56:11 -0500
|
2018-06-19 14:33:22 +00:00
|
|
|
Subject: [PATCH 139/246] 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
|
2018-02-27 18:56:41 +00:00
|
|
|
index c8c0fa4199d..d7924af5192 100644
|
2016-04-05 19:28:47 +00:00
|
|
|
--- a/util/grub-setpassword.in
|
|
|
|
+++ b/util/grub-setpassword.in
|
2017-06-16 19:31:32 +00:00
|
|
|
@@ -104,7 +104,7 @@ getpass() {
|
2016-04-05 19:28:47 +00:00
|
|
|
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 //"
|
|
|
|
}
|
|
|
|
--
|
2018-06-04 16:28:07 +00:00
|
|
|
2.17.1
|
2016-04-05 19:28:47 +00:00
|
|
|
|