diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-04-25 18:01:11 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-04-25 18:01:11 +0100 |
commit | 65d6278f883b08673e9dbfefc376864ee01d9655 (patch) | |
tree | a505029faa66d1395bcd98d254b08490bc15173a /environ.c | |
parent | b9382125636dfe0fa8a114d93a7268b947df9ad5 (diff) | |
parent | c48d09ec8870ac218d6cc2bbec638d59839eda27 (diff) | |
download | rtmux-65d6278f883b08673e9dbfefc376864ee01d9655.tar.gz rtmux-65d6278f883b08673e9dbfefc376864ee01d9655.tar.bz2 rtmux-65d6278f883b08673e9dbfefc376864ee01d9655.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'environ.c')
-rw-r--r-- | environ.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -222,7 +222,7 @@ environ_log(struct environ *env, const char *prefix) /* Create initial environment for new child. */ struct environ * -environ_for_session(struct session *s) +environ_for_session(struct session *s, int no_TERM) { struct environ *env; const char *value; @@ -233,8 +233,10 @@ environ_for_session(struct session *s) if (s != NULL) environ_copy(s->environ, env); - value = options_get_string(global_options, "default-terminal"); - environ_set(env, "TERM", "%s", value); + if (!no_TERM) { + value = options_get_string(global_options, "default-terminal"); + environ_set(env, "TERM", "%s", value); + } if (s != NULL) idx = s->id; |