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

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