[Bug 3438] env var that is SetEnv'ed multiple times in the same SetEnv directive, is sent/printed several times

2023-08-28 Thread bugzilla-daemon
https://bugzilla.mindrot.org/show_bug.cgi?id=3438

git...@kalvdans.no-ip.org changed:

   What|Removed |Added

 CC||git...@kalvdans.no-ip.org

-- 
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

2023-04-14 Thread bugzilla-daemon
https://bugzilla.mindrot.org/show_bug.cgi?id=3438

--- Comment #3 from Christoph Anton Mitterer  ---
Shall I provide a patch that adds a line like:
"If the same variable is give multiple times, only it's first
occurrence is considered."

to SetEnv / SendEnv?

However, for SendEnv it would be interesting if this is actually the
case there as well, and especially if there's a "clearing" entry like
in:

SendEnv FOO BAR FOO BAZ -FOO

-- 
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

2022-11-14 Thread bugzilla-daemon
https://bugzilla.mindrot.org/show_bug.cgi?id=3438

--- Comment #2 from Christoph Anton Mitterer  ---
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


[Bug 3438] env var that is SetEnv'ed multiple times in the same SetEnv directive, is sent/printed several times

2022-11-13 Thread bugzilla-daemon
https://bugzilla.mindrot.org/show_bug.cgi?id=3438

Colin Watson  changed:

   What|Removed |Added

 CC||cjwat...@debian.org

--- Comment #1 from Colin Watson  ---
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