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