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
Irix 6.5.5 OpenSSH 2.2.0p1 Alain. mouring at etoh.eviladmin.org wrote:> 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? > > > revision 1.26 > date: 2000/09/30 10:34:44; author: djm; state: Exp; lines: +14 -4 > - (djm) Irix strips "/dev/tty" from [uw]tmp entries (other systems only > strip "/dev/"). Fix loginrec.c based on patch from Alain St-Denis > <Alain.St-Denis at ec.gc.ca> > > No idea what version Alain is running for SGI. > > - 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? >revision 1.26 date: 2000/09/30 10:34:44; author: djm; state: Exp; lines: +14 -4 - (djm) Irix strips "/dev/tty" from [uw]tmp entries (other systems only strip "/dev/"). Fix loginrec.c based on patch from Alain St-Denis <Alain.St-Denis at ec.gc.ca> No idea what version Alain is running for SGI. - Ben
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 > >