[BusyBox-cvs] busybox/networking wget.c,1.65,1.66

Glenn McGrath bug1 at busybox.net
Sat Jan 17 23:07:16 UTC 2004


Update of /var/cvs/busybox/networking
In directory nail:/tmp/cvs-serv6332/networking

Modified Files:
	wget.c 
Log Message:
Patch from Leif Lindholm (slightly modified by me), to fix http 
redirection.
Example of incorrect behaviour was the following url, busybox wget didnt 
get redirected to the busybox url as it should.
http://freshmeat.net/redir/busybox/953/url_homepage/www.busybox.net


Index: wget.c
===================================================================
RCS file: /var/cvs/busybox/networking/wget.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- wget.c	17 Jan 2004 05:03:31 -0000	1.65
+++ wget.c	17 Jan 2004 23:07:14 -0000	1.66
@@ -404,6 +404,9 @@
 							server.host = target.host;
 							server.port = target.port;
 						}
+						bb_lookup_host(&s_in, server.host);
+						s_in.sin_port = server.port;
+						break;
 					}
 				}
 			}




More information about the busybox-cvs mailing list