ftp mishandles dotted quad addresses (+FIX)

Steven M. Schultz sms at wlv.imsd.contel.com
Sun Sep 16 15:18:59 AEST 1990


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>



More information about the Comp.bugs.2bsd mailing list