Blame SOURCES/cu-Fix-issue-LP-1928167-growpart-doesn-t-work-when-LANG.patch

dc5996
From 3fc71ad0d38a3205ad8a790769353b67f32dccff Mon Sep 17 00:00:00 2001
dc5996
From: Emanuele Giuseppe Esposito <eesposit@redhat.com>
dc5996
Date: Thu, 10 Jun 2021 17:04:49 +0200
dc5996
Subject: [PATCH] Fix issue LP: #1928167 growpart doesn't work when
dc5996
 LANG=cs_CZ.UTF-8
dc5996
dc5996
RH-Author: Emanuele Giuseppe Esposito <eesposit@redhat.com>
dc5996
RH-MergeRequest: 3: Fix issue LP: #1928167 growpart doesn't work when LANG=cs_CZ.UTF-8
dc5996
RH-Commit: [1/1] e77ca8febb4171201c6c75f9420c4744ab321024
dc5996
RH-Bugzilla: 1885992
dc5996
RH-Acked-by: Mohamed Gamal Morsy <mmorsy@redhat.com>
dc5996
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
dc5996
dc5996
commit 03aa9974e7eb438b798fe95afc7cf4efe72ea73a
dc5996
Author: Amy Chen <66719270+xiachen-rh@users.noreply.github.com>
dc5996
Date:   Wed May 12 13:03:17 2021 +0800
dc5996
dc5996
    Fix issue LP: #1928167 growpart doesn't work when LANG=cs_CZ.UTF-8
dc5996
dc5996
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
dc5996
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
dc5996
---
dc5996
 bin/growpart | 2 +-
dc5996
 1 file changed, 1 insertion(+), 1 deletion(-)
dc5996
dc5996
diff --git a/bin/growpart b/bin/growpart
dc5996
index e815e4e..66a6dd2 100755
dc5996
--- a/bin/growpart
dc5996
+++ b/bin/growpart
dc5996
@@ -181,7 +181,7 @@ get_sfdisk_version() {
dc5996
 	local out oifs="$IFS" ver=""
dc5996
 	[ -n "$SFDISK_VERSION" ] && return 0
dc5996
 	# expected output: sfdisk from util-linux 2.25.2
dc5996
-	out=$(sfdisk --version) ||
dc5996
+	out=$(LANG=C sfdisk --version) ||
dc5996
 		{ error "failed to get sfdisk version"; return 1; }
dc5996
 	set -- $out
dc5996
 	ver=$4
dc5996
-- 
dc5996
2.27.0
dc5996