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

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