[Bug 82] scp: Command not found errors

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Jan 26 13:47:46 EST 2002


http://bugzilla.mindrot.org/show_bug.cgi?id=82

steve_dum at mentor.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |



------- Additional Comments From steve_dum at mentor.com  2002-01-26 13:47 -------
Yes, in 3.0.2p1 it causes USER_PATH to be defined in config.h.  However,
it's not used in any of the code.

The old behavior, e.g. 1.2.3, when USER_PATH was defined, it caused
_PATH_STDPATH to be defined (in config.h).  This in turn was used by
sshd.c in a call to child_set_env(...) to set it in the environment.
That code isn't there any longer.

More important, it looks like sshd forks off a user's shell to execute the
scp command, so now we are stuck with the system default settings for PATH,
and as you point out, what the user's local initialization code does.
So even if --with-default-path did work, it would be overridden, making the
advice of the FAQ not very helpful.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-unix-dev mailing list