Displaying 1 result from an estimated 1 matches for "num_setenv".
2022 Jan 10
3
[Bug 3379] New: Config parser only allows SetEnv once
...Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: bugzilla at streibelt.net
When using SetEnv in the .ssh/config it can only be used once.
Every additional entry will be ignored.
looking at readconf.c:1758 I see that options->num_setenv is being
checked to be != 0 and then continuing.
This leads to these configurations NOT to work as intended:
SetEnv TZ=UTC
SetEnv TERM=xterm
Here only TZ will be set.
Also when SetEnv is being used globally, it cannot be used later inside
a Host definition to specify additional variables or cha...