All of lore.kernel.org
 help / color / mirror / Atom feed
* main - lvmdbusd: Simplify child process env
@ 2022-06-30 16:00 Tony Asleson
  0 siblings, 0 replies; only message in thread
From: Tony Asleson @ 2022-06-30 16:00 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=58c6c9e9aa8d6aa6d3be14a04ec0f4257b61495e
Commit:        58c6c9e9aa8d6aa6d3be14a04ec0f4257b61495e
Parent:        37733cd4eb5116db371ac1ae6e971e3c336c3ddb
Author:        Tony Asleson <tasleson@redhat.com>
AuthorDate:    Wed May 25 15:52:20 2022 -0500
Committer:     Tony Asleson <tasleson@redhat.com>
CommitterDate: Thu Jun 30 10:55:16 2022 -0500

lvmdbusd: Simplify child process env

We don't need to duplicate the entire env from the parent, supply only what
is needed.
---
 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"
 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-30 16:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-30 16:00 main - lvmdbusd: Simplify child process env Tony Asleson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.