Mailing List Archive

[Bug 3438] env var that is SetEnv'ed multiple times in the same SetEnv directive, is sent/printed several times
https://bugzilla.mindrot.org/show_bug.cgi?id=3438

Colin Watson <cjwatson@debian.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |cjwatson@debian.org

--- Comment #1 from Colin Watson <cjwatson@debian.org> ---
This bug is referenced in the changelog for OpenSSH 9.1/9.1p1 as being
fixed in that release:

* ssh(1), sshd(8): SetEnv directives in ssh_config and sshd_config
are now first-match-wins to match other directives. Previously
if an environment variable was multiply specified the last set
value would have been used. bz3438

Should it be closed?

--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3438] env var that is SetEnv'ed multiple times in the same SetEnv directive, is sent/printed several times [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3438

--- Comment #2 from Christoph Anton Mitterer <calestyo@scientia.org> ---
I've just verified this with Colin's fresh openssh-client 1:9.1p1-1:

When set in ssh_config as:
SetEnv LC_ALL=C
SetEnv LC_ALL=C.UTF-8

one now gets:
setenv LC_ALL=C
in -G and in -v:
debug1: channel 0: setting env LC_ALL = "C"


And without the following in the config:
SetEnv LC_ALL=C LC_ALL=C.UTF-8
one now gets:
setenv LC_ALL=C
in -G and in -v:
debug1: channel 0: setting env LC_ALL = "C"


So I can confirm it's been fixed.


I'll leave it open for now, cause maybe ssh upstream wants to add some
documentation?


Cheers,
Chris.

--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs