[MacPorts] #27798: bad default $PATH for sshd
MacPorts
noreply at macports.org
Mon Dec 27 15:17:36 PST 2010
#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
More information about the macports-tickets
mailing list