[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: telnetd broken on Linux



Brian May <bam@snoopy.apana.org.au> writes:
> Linux 2.4.x (currently 2.4.7).
> 
> devfs mounted on boot.

Right, this is due to telnetd not being able to handle the (sane) mix
between bsd ptys and streams ptys that is.  Can you test this simple
patch and tell us if it works?  You might have to link telnetd with
-lutil.

/assar

Index: sys_term.c
===================================================================
RCS file: /afs/pdc.kth.se/src/packages/kth-krb/SourceRepository/appl/telnet/telnetd/sys_term.c,v
retrieving revision 1.100
diff -u -w -u -w -r1.100 sys_term.c
--- sys_term.c	2001/04/24 23:11:43	1.100
+++ sys_term.c	2001/08/06 03:36:49
@@ -398,7 +398,7 @@
 #if SunOS == 40
     int dummy;
 #endif
-#if 0 /* && defined(HAVE_OPENPTY) */
+#if __linux
     int master;
     int slave;
     if(openpty(&master, &slave, line, 0, 0) == 0){