diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2020-03-08 23:09:51 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2020-03-08 23:09:51 +0100 |
commit | 78fc77fcc607c10dc60a44f2262e848c24f600d6 (patch) | |
tree | 2d3b044f4c45297f5b0bf751a24dc28d90b50902 | |
parent | e19e7a1e5372927ccfeb05ee7a17fbdf5daa3012 (diff) | |
download | utils-78fc77fcc607c10dc60a44f2262e848c24f600d6.tar utils-78fc77fcc607c10dc60a44f2262e848c24f600d6.tar.gz utils-78fc77fcc607c10dc60a44f2262e848c24f600d6.tar.bz2 utils-78fc77fcc607c10dc60a44f2262e848c24f600d6.tar.xz utils-78fc77fcc607c10dc60a44f2262e848c24f600d6.zip |
...
-rw-r--r-- | notmuch-ssh-server | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/notmuch-ssh-server b/notmuch-ssh-server index 3ff0559..0dc8cc2 100644 --- a/notmuch-ssh-server +++ b/notmuch-ssh-server | |||
@@ -33,8 +33,8 @@ if len(original_command) < 1: | |||
33 | config_section = original_command[0] | 33 | config_section = original_command[0] |
34 | logging.debug("Config section: %s", config_section) | 34 | logging.debug("Config section: %s", config_section) |
35 | 35 | ||
36 | command_environment = config[config_section] if config.has_section(config_section) else config[config.default_section] | 36 | config_environment = config[config_section] if config.has_section(config_section) else config[config.default_section] |
37 | logging.info("Command environment: %s", command_environment) | 37 | logging.info("Config environment: %s", config_environment) |
38 | 38 | ||
39 | logging.info("notmuch %s", original_command[1:]) | 39 | logging.info("notmuch %s", original_command[1:]) |
40 | os.execvpe('@notmuch@/bin/notmuch', original_command[1:], command_environment) | 40 | os.execvpe('@notmuch@/bin/notmuch', original_command[1:], {**os.environ, **config_environment}) |