Skip to contentSkip to conversation

main - lvmdbus: preserve PATH envvar

PATCH Zdenek Kabelac 1 participant 1 message Apr 23, 2023

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=afc02ae6e7234e1190cedf5c74ca3d6367efd7d1
Commit:        afc02ae6e7234e1190cedf5c74ca3d6367efd7d1
Parent:        ce8835d4c429bd87da5731e3015d9ddc9e3fb888
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Apr 23 12:49:37 2023 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sun Apr 23 12:49:37 2023 +0200

lvmdbus: preserve PATH envvar

---
 daemons/lvmdbusd/lvm_shell_proxy.py.in | 2 ++
 1 file changed, 2 insertions(+)
daemons/lvmdbusd/lvm_shell_proxy.py.in +2 -0
index b8c8fa565..02a776e1d 100755
@@ -154,6 +154,8 @@ class LVMShellProxy(object):
 
 		# If any env variables contain LVM we will propagate them too
 		for k, v in os.environ.items():
+			if "PATH" in k:
+				local_env[k] = v
 			if "LVM" in k:
 				local_env[k] = v