On Mon, 8 Jul 2002, Andrew Daviel wrote:
>
> 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.
>
This may be a better solution. Please test.
If you don't have autoconf 2.52, e-mail me for configure
---------------< cut >----------------
--- configure.ac.old Sun Jul 7 13:43:36 2002
+++ configure.ac Mon Jul 8 08:42:26 2002
@@ -2002,7 +2002,11 @@
# include <paths.h>
#endif
#ifndef _PATH_STDPATH
-# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
+# ifdef _PATH_USERPATH /* Irix */
+# define _PATH_STDPATH _PATH_USERPATH
+# else
+# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
+# endif
#endif
#include <sys/types.h>
#include <sys/stat.h>
---------------< end cut >---------------->
> 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.
>
>
--
Tim Rice Multitalents (707) 887-1469
tim at multitalents.net