Re: "State of the art"
On Jun 12, Michael Alan Dorman wrote:
>
> Finally, some packages, though they compile fine, don't work entirely
> properly. A big one here is telnet---FWIW, if you telnet to a
> specific IP address it'll work. I don't know why hostname resolution
> confuses it so.
>
As for telnet, I have a patch (see below). I'm going to submit a bug
report later today to make it officially included into 2.13-2.
Kit
--- telnet/commands.c.orig Sat Jun 14 15:01:25 1997
+++ telnet/commands.c Sat Jun 14 15:05:10 1997
@@ -2219,7 +2219,7 @@
} else {
#endif
temp = inet_addr(hostp);
- if (temp != (unsigned long) -1) {
+ if (temp != INADDR_NONE) {
sin.sin_addr.s_addr = temp;
sin.sin_family = AF_INET;
(void) strcpy(_hostname, hostp);
@@ -2787,7 +2787,7 @@
if (!c)
cp2 = 0;
- if ((tmp = inet_addr(cp)) != -1) {
+ if ((tmp = inet_addr(cp)) != (int)INADDR_NONE) {
sin_addr.s_addr = tmp;
} else if (host = gethostbyname(cp)) {
#if defined(h_addr)
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-alpha-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: