bugzilla-daemon at mindrot.org
2002-Jan-25 23:14 UTC
[Bug 82] scp: Command not found errors
http://bugzilla.mindrot.org/show_bug.cgi?id=82 djm at mindrot.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME ------- Additional Comments From djm at mindrot.org 2002-01-26 10:14 ------- The --with-default-path option most certainly does work. You probably have some environment or shell initialisation which is clobbering your $PATH env var. I don't see how the FAQ is out of date. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2002-Jan-26 02:47 UTC
[Bug 82] scp: Command not found errors
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.
bugzilla-daemon at mindrot.org
2002-Jan-26 03:24 UTC
[Bug 82] scp: Command not found errors
http://bugzilla.mindrot.org/show_bug.cgi?id=82 djm at mindrot.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID ------- Additional Comments From djm at mindrot.org 2002-01-26 14:24 ------- Please read the code. From defines.h: #ifdef USER_PATH # ifdef _PATH_STDPATH # undef _PATH_STDPATH # endif # define _PATH_STDPATH USER_PATH #endif
bugzilla-daemon at mindrot.org
2002-Jan-26 05:51 UTC
[Bug 82] scp: Command not found errors
http://bugzilla.mindrot.org/show_bug.cgi?id=82 ------- Additional Comments From steve_dum at mentor.com 2002-01-26 16:51 ------- Apologies, your right. The FAQ should be updated to indicate that another reason this error occurs is if ones shell initialiation excludes the directory that scp is in from the PATH variable. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.