two irix patches

mouring at etoh.eviladmin.org mouring at etoh.eviladmin.org
Sat Dec 2 09:29:25 EST 2000


Reverted and Applied.

- Ben

On Fri, 1 Dec 2000, Michael Stone wrote:

> First, does anyone know why the following was added in the first place?
> It purposely strips the tty off of tty names (e.g., ttyq1 becomes q1)
> before sticking them in wtmp. IRIX then has no idea what terminal people
> are attached to, causing commands like wall to fail (as they try to open
> /dev/q1). Maybe this should be version specific?
> 
> --- openssh-SNAP-20001129.orig/loginrec.c       Thu Nov  9 22:28:31 2000
> +++ openssh-SNAP-20001129/loginrec.c    Thu Nov 30 13:52:24 2000
> @@ -512,13 +512,8 @@
>  line_stripname(char *dst, const char *src, int dstsize)
>  {
>         memset(dst, '\0', dstsize);
> -#ifdef sgi
> -       if (strncmp(src, "/dev/tty", 8) == 0)
> -               strlcpy(dst, src + 8, dstsize);
> -#else
>         if (strncmp(src, "/dev/", 5) == 0)
>                 strlcpy(dst, src + 5, dstsize);
> -#endif
>         else                                                          
>                 strlcpy(dst, src, dstsize);                           
>         return dst;                                                   
> 
> 
> Next, we need some sort of mansubdir:
> 
> --- openssh-SNAP-20001129.orig/configure.in     Tue Nov 28 21:28:50 2000
> +++ openssh-SNAP-20001129/configure.in  Thu Nov 30 13:42:55 2000
> @@ -119,6 +120,7 @@
>         no_libsocket=1
>         no_libnsl=1
>         AC_DEFINE(BROKEN_INET_NTOA)
> +       mansubdir=man
>         ;;
>  *-*-linux*)
>         no_dev_ptmx=1
> 
> 






More information about the openssh-unix-dev mailing list