Bug ID: 2831
           Summary: ProxyJump self-exec construction ignores path-to-self,
                    exec's wrong ssh
           Product: Portable OpenSSH
           Version: 7.6p1
          Hardware: 68k
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh

On a system with an older release in /usr/bin and current OpenSSH in
/usr/local/bin, but for $reasons keeping /usr/bin first in the $PATH,
having "ssh" exec itself using "ssh" as argv[0] will execute the wrong
SSH.  That's what ProxyJump does.

Encountered via: git using core.sshCommand as a setting, and a config
file using ProxyJump.  The child ssh will complain about the invalid
configuration directive.

Since config can be read by "sftp" etc, I suspect that one fix is to
look for a path separator in "our" argv[0] and if found, then replace
the last component with "ssh" and use the result as the new process'
argv[0], otherwise fall back to "ssh".

You are receiving this mail because:
You are watching the assignee of the bug.
openssh-bugs mailing list

Reply via email to