[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: telnetd broken on Linux
- To: Brian May <bam@snoopy.apana.org.au>
- Subject: Re: telnetd broken on Linux
- From: Assar Westerlund <assar@sics.se>
- Date: 06 Aug 2001 05:36:57 +0200
- Cc: heimdal-discuss@sics.se
- In-Reply-To: Brian May's message of "31 Jul 2001 10:13:55 +1000"
- References: <84n15o2nfn.fsf@scrooge.chocbit.org.au> <5ln15mf0xy.fsf@assaris.sics.se> <84k80qez0c.fsf@scrooge.chocbit.org.au>
- Sender: owner-heimdal-discuss@sics.se
- User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
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){