[MacPorts] #27798: bad default $PATH for sshd
#27798: bad default $PATH for sshd ---------------------------------+------------------------------------------ Reporter: vinc17@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: openssh ---------------------------------+------------------------------------------ /opt/local/etc/ssh/sshd_config contains: {{{ # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/bin }}} and indeed: {{{ % ssh -p 2222 localhost echo \$PATH /usr/bin:/bin:/usr/sbin:/sbin:/opt/local/bin }}} IMHO, /opt/local/bin should come first so that versions provided by MacPorts are preferred. Otherwise {{{ % ssh -p 2222 localhost rsync --version rsync version 2.6.9 protocol version 29 }}} instead of the rsync provided by MacPorts. Adding the configure option {{{ --with-default-path=${prefix}/bin:/usr/bin:/bin:/usr/sbin:/sbin }}} would solve the problem. -- Ticket URL: <https://trac.macports.org/ticket/27798> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27798: bad default $PATH for sshd ---------------------------------+------------------------------------------ Reporter: vinc17@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: openssh ---------------------------------+------------------------------------------ Changes (by jmr@…): * keywords: => haspatch -- Ticket URL: <https://trac.macports.org/ticket/27798#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27798: bad default $PATH for sshd -----------------------+---------------------- Reporter: vinc17@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: | Keywords: haspatch Port: openssh | -----------------------+---------------------- Changes (by cal@…): * owner: jwa@… => cal@… Comment: I'd argue that this is the job of .profile or any other user-setup scripts, not the job of SSHd. Not all users might want to have MacPorts first in their path after sshing to a MacPorts SSHd machine. -- Ticket URL: <https://trac.macports.org/ticket/27798#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#27798: bad default $PATH for sshd -----------------------+---------------------- Reporter: vinc17@… | Owner: cal@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: wontfix | Keywords: haspatch Port: openssh | -----------------------+---------------------- Changes (by cal@…): * status: new => closed * resolution: => wontfix -- Ticket URL: <https://trac.macports.org/ticket/27798#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts