Make SetEnv directives first-match-wins in both sshd_config and
authordjm <djm@openbsd.org>
Fri, 3 Jun 2022 04:30:46 +0000 (04:30 +0000)
committerdjm <djm@openbsd.org>
Fri, 3 Jun 2022 04:30:46 +0000 (04:30 +0000)
commit3194670148b4c43d808c191de937f20515008468
tree6e2830321beb6677950b622e5c080f2af33e53ab
parentb7c55317ffc779711ea04686e23acc3950fbd72b
Make SetEnv directives first-match-wins in both sshd_config and
sshd_config; previously if the same name was reused then the last
would win (which is the opposite to how the config is supposed to
work).

While there, make the ssh_config parsing more like sshd_config.

bz3438, ok dtucker
usr.bin/ssh/clientloop.c
usr.bin/ssh/misc.c
usr.bin/ssh/misc.h
usr.bin/ssh/mux.c
usr.bin/ssh/readconf.c
usr.bin/ssh/readconf.h
usr.bin/ssh/servconf.c