🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Steven M. Schultz Sun, 16 Sep 1990 05:18
ftp mishandles dotted quad addresses (+FIX)
#76
Author: Steven M. Schultz
Date: Sun, 16 Sep 1990 05:18
28 lines
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>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads