Blame SOURCES/0010-lvmdbusd-Simplify-child-process-env.patch

d0283b
From ece4c18a42af8fde41f55fd43e8cc0ca34ab2f7d Mon Sep 17 00:00:00 2001
d0283b
From: Tony Asleson <tasleson@redhat.com>
d0283b
Date: Wed, 25 May 2022 15:52:20 -0500
d0283b
Subject: [PATCH 2/9] lvmdbusd: Simplify child process env
d0283b
d0283b
We don't need to duplicate the entire env from the parent, supply only what
d0283b
is needed.
d0283b
d0283b
(cherry picked from commit 58c6c9e9aa8d6aa6d3be14a04ec0f4257b61495e)
d0283b
---
d0283b
 daemons/lvmdbusd/lvm_shell_proxy.py.in | 3 ++-
d0283b
 1 file changed, 2 insertions(+), 1 deletion(-)
d0283b
d0283b
diff --git a/daemons/lvmdbusd/lvm_shell_proxy.py.in b/daemons/lvmdbusd/lvm_shell_proxy.py.in
d0283b
index 78fe1e422..10719c67e 100644
d0283b
--- a/daemons/lvmdbusd/lvm_shell_proxy.py.in
d0283b
+++ b/daemons/lvmdbusd/lvm_shell_proxy.py.in
d0283b
@@ -135,7 +135,8 @@ class LVMShellProxy(object):
d0283b
 		self.report_stream = os.fdopen(self.report_fd, 'rb', 0)
d0283b
 
d0283b
 		# Setup the environment for using our own socket for reporting
d0283b
-		local_env = copy.deepcopy(os.environ)
d0283b
+		local_env = {}
d0283b
+		local_env["LC_ALL"] = "C"
d0283b
 		local_env["LVM_REPORT_FD"] = "32"
d0283b
 		local_env["LVM_COMMAND_PROFILE"] = "lvmdbusd"
d0283b
 
d0283b
-- 
d0283b
2.37.1
d0283b