scp with openssh on the server side and $PATH.
Jim Knoble
jmknoble at pobox.com
Mon Dec 27 06:36:53 EST 1999
That probably won't work the way you intend. Try the attached patch to
sshd.c instead (against 1.2.1pre21).
--
jim knoble
jmknoble at pobox.com
På 1999-Dec-26 klokka 13:59:08 +0000 skrivet Marc Haber:
: In the mean time, I found out that this path comes from
: /usr/include/paths.h which is included from config.h (thanks to Jim
: Knoble for pointing that out in his Alert article.
:
: I will try later today if preventing that include from happening will
: solve the problem.
-------------- next part --------------
--- ./sshd.c.orig-stdpath Sat Dec 25 22:04:33 1999
+++ ./sshd.c Sun Dec 26 03:04:07 1999
@@ -44,6 +44,9 @@
#define O_NOCTTY 0
#endif
+#undef _PATH_STDPATH
+#define _PATH_STDPATH "/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
+
/* Local Xauthority file. */
static char *xauthfile = NULL;
More information about the openssh-unix-dev
mailing list