PATH problem in Irix.

Andrew Daviel andrew at andrew.triumf.ca
Tue Jul 9 00:34:42 EST 2002


I recently compiled openssh 3.4p1 for SGI Irix, and found the same problem
I'd had with 2.5.

Viz. that Irix /usr/include/paths.h defines _PATH_USERPATH, not USER_PATH,
so that defines.h doesn't find it and we get the default, which is missing
/usr/bsd (which on Irix has things like head, more, lpr) and /usr/bin/X11.
This annoys the users, who want X11 to work.


I added a test to defines.h, as follows:

--- openssh-3.4p1/defines.h     Mon Jun 24 09:26:49 2002
+++ defines.h   Sun Jul  7 00:33:08 2002
@@ -296,6 +296,14 @@
 # define _PATH_STDPATH USER_PATH
 #endif
 
+#ifdef _PATH_USERPATH
+# ifdef _PATH_STDPATH
+#  undef _PATH_STDPATH
+# endif
+# define _PATH_STDPATH _PATH_USERPATH
+#endif
+
+
 #ifndef _PATH_STDPATH
 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
 #endif


There's also a _PATH_ROOTPATH  defined for root defaults, but I didn't try 
to implement that for root login.

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376
security at triumf.ca




More information about the openssh-unix-dev mailing list