summaryrefslogtreecommitdiff
path: root/daemons
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2022-05-25 15:52:20 -0500
committerTony Asleson <tasleson@redhat.com>2022-06-30 10:55:16 -0500
commit58c6c9e9aa8d6aa6d3be14a04ec0f4257b61495e (patch)
tree8d6a497f09cdb7eac366ab9fcf9cba19076a84fe /daemons
parent37733cd4eb5116db371ac1ae6e971e3c336c3ddb (diff)
downloadlvm2-58c6c9e9aa8d6aa6d3be14a04ec0f4257b61495e.tar.gz
lvmdbusd: Simplify child process env
We don't need to duplicate the entire env from the parent, supply only what is needed.
Diffstat (limited to 'daemons')
-rw-r--r--daemons/lvmdbusd/lvm_shell_proxy.py.in3
1 files changed, 2 insertions, 1 deletions
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"