Blame SOURCES/0070-Fix-locale-issue-in-grub-setpassword-1294243.patch

d9d99f
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d9d99f
From: Robert Marshall <rmarshall@redhat.com>
d9d99f
Date: Fri, 29 Jan 2016 16:56:11 -0500
d9d99f
Subject: [PATCH] Fix locale issue in grub-setpassword (#1294243)
d9d99f
d9d99f
A shell substitution was expecting non-translated output to grab the
d9d99f
hashed password and put it in the user.cfg file. Modified code to force
d9d99f
the generic C locale when this particular piece of code is run.
d9d99f
d9d99f
Resolves: rhbz#1294243
d9d99f
---
d9d99f
 util/grub-setpassword.in | 2 +-
d9d99f
 1 file changed, 1 insertion(+), 1 deletion(-)
d9d99f
d9d99f
diff --git a/util/grub-setpassword.in b/util/grub-setpassword.in
d9d99f
index c8c0fa4199d..d7924af5192 100644
d9d99f
--- a/util/grub-setpassword.in
d9d99f
+++ b/util/grub-setpassword.in
d9d99f
@@ -104,7 +104,7 @@ getpass() {
d9d99f
     P1="$1" && shift
d9d99f
 
d9d99f
     ( echo ${P0} ; echo ${P1} ) | \
d9d99f
-        ${grub_mkpasswd} | \
d9d99f
+        LC_ALL=C ${grub_mkpasswd} | \
d9d99f
         grep -v '[eE]nter password:' | \
d9d99f
         sed -e "s/PBKDF2 hash of your password is //"
d9d99f
 }