Subject: http-gw 2.1 patch for displaying entire version string in error output

From: Liudvikas Bukys <[email-masked]>
Date: Fri, 8 Sep 2000 14:19:41 -0400 (EDT)

[To be removed from this list send the message "unsubscribe fwtk-users" in the
BODY of a mail message to [email-masked].]

If you try an FTP URL with a port number (try ftp://localhost:666),
you'll find that FWTK 2.1 overrides the user-specified port, forcing it
to port 21.  The reason it did that was because the http-gw.c code
defaulted the port number to 80 for FTP URLs, and the (incorrect)
workaround was to force it to 21 in all cases.  The enclosed patch
defaults to port 21, then allows the user to override with the URL.

Liudvikas Bukys
University of Rochester
734 Computer Studies Building
Rochester, NY 14627-0226

tel# 716-275-7747
fax# 716-273-4556

<[email-masked]>
<[email-masked]>
<[email-masked]>

-------------------------------------------------------------------------------

*** ftp.c	1998/09/24 14:53:52	1.1
--- ftp.c	2000/09/08 16:54:32
***************
*** 281,286 ****
  
! 	port = FTPPORT;
! 	port = get_port(host, port);
! 	rem_port = port;
! 
  
--- 281,289 ----
  
! 	if( rem_port == 0){
! 		port = FTPPORT;
! 		port = get_port(host, port);
! 		rem_port = port;
! 	}else{
! 		port = rem_port;
! 	}
  
-------------------------------------------------------------------------------

*** http-gw.c	2000/09/08 15:24:21	1.3
--- http-gw.c	2000/09/08 17:43:28
***************
*** 441,442 ****
--- 441,444 ----
  			parse_vec[3] = "70";
+ 		else if (!strcasecmp(parse_vec[0], "ftp"))
+ 			parse_vec[3] = "21";
  		else

-------------------------------------------------------------------------------