Article View: comp.bugs.2bsd
Article #76ftp mishandles dotted quad addresses (+FIX)
From: Steven M. Schultz
Date: Sun, 16 Sep 1990 05:18
Date: Sun, 16 Sep 1990 05:18
28 lines
1218 bytes
1218 bytes
Subject: ftp mishandles dotted quad addresses Index: ucb/ftp/ftp.c 2.10BSD Description: ftp can not connect to a remote system given a dotted quad as a system name. Repeat-By: attempt to ftp to a known system using its IP address. Fix: The problem is (yet another!) long vs. int problem. inet_addr returns a 32bit number, the appropriate declaration was missing. the include file inet/arpa/inet.h provides the missing declaration. *** ftp.c.old Sun Sep 16 00:55:09 1990 --- ftp.c Sat Sep 15 01:25:08 1990 *************** *** 29,34 **** --- 29,35 ---- #include <netinet/in.h> #include <arpa/ftp.h> #include <arpa/telnet.h> + #include <arpa/inet.h> #include <stdio.h> #include <signal.h>
Technical Details
Message-ID:
<58205@wlbr.IMSD.CONTEL.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!usc!jarthur!elroy.jpl.nasa.gov!mahendo!wlbr!wlv.imsd.contel.com!smsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!usc!jarthur!elroy.jpl.nasa.gov!mahendo!wlbr!wlv.imsd.contel.com!sms From: sms@wlv.imsd.contel.com (Steven M. Schultz) Newsgroups: comp.bugs.2bsd Subject: ftp mishandles dotted quad addresses (+FIX) Message-ID: <58205@wlbr.IMSD.CONTEL.COM> Date: 16 Sep 90 05:18:59 GMT Sender: news@wlbr.IMSD.CONTEL.COM Reply-To: sms@wlv.imsd.contel.com (Steven M. Schultz) Organization: Contel Federal Systems Lines: 28