diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2023-04-23 12:49:37 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2023-04-23 12:49:37 +0200 |
commit | afc02ae6e7234e1190cedf5c74ca3d6367efd7d1 (patch) | |
tree | 3a81c7498b753c3e2405b084b9270afaa2e69afd | |
parent | ce8835d4c429bd87da5731e3015d9ddc9e3fb888 (diff) | |
download | lvm2-afc02ae6e7234e1190cedf5c74ca3d6367efd7d1.tar.gz |
lvmdbus: preserve PATH envvar
-rwxr-xr-x | daemons/lvmdbusd/lvm_shell_proxy.py.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/daemons/lvmdbusd/lvm_shell_proxy.py.in b/daemons/lvmdbusd/lvm_shell_proxy.py.in index b8c8fa565..02a776e1d 100755 --- a/daemons/lvmdbusd/lvm_shell_proxy.py.in +++ b/daemons/lvmdbusd/lvm_shell_proxy.py.in @@ -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 |