two irix patches

Michael Stone mstone at cs.loyola.edu
Sat Dec 2 03:43:02 EST 2000


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

-- 
Mike Stone





More information about the openssh-unix-dev mailing list