bug-inetutils
[Top][All Lists]
Advanced

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

suggested fixes for 2 perceived problems with telnetd


From: Duncan Roe
Subject: suggested fixes for 2 perceived problems with telnetd
Date: Sat, 21 Apr 2001 22:04:30 +1000

Hi,

Below I document 2 problems recently encountered building inetutils-1.3.2. Both
are with telnetd, both are in sys_term.c, although problem 2 is also a configure
issue. Revisions:

 glibc6: /lib/libc.so.6 -> libc-2.1.3.so*
 gcc:    gcc version 2.95.2 19991024 (release)
 Linux:  2.2.18
 The system was originally a Slackware install (at Linux 1.2), upgraded by hand
since then

Problem 1 is that telnetd.c did not compile when configure detected the presence
of /usr/include/utmpx.h

It seems that you must also #include <utmp.h> in this case

Problem 2 is that if you are using the new /dev/ptmx interface to obtain pty's
*and* have deleted all the old /dev/pty* entries (as I thought was recommended)
then "telnet localhost" would return the error "All network ports in use."

This is addressed by using a small portion of the STREAMSPTY code to obtain the
pty. I defined HAVE_PTMX for this (same name as used by expect)

configure needs to be upgraded to add this to config.h but that is beyond my ken
so in the patch below it is hardcoded in sys_term.c. You need to [ -f /dev/ptmx
-a -d /dev/pts ] in configure to decide that HAVE_PTMX should be asserted

Cheers ... Duncan.

Attachment: t5
Description: Suggested patch (but you should remove #define USE_PTMX)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]