Path: 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 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 #include #include + #include #include #include