[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [BusyBox] /usr/bin/ftpget and /usr/bin/ftpput don't work
From:       Glenn McGrath <bug1 () iinet ! net ! au>
Date:       2003-12-24 6:30:55
[Download RAW message or body]

On Tue, 23 Dec 2003 23:27:21 -0500
"Michael Shore" <mike@bah.net> wrote:

> Hello,
> 
> Re: busybox-1.0-pre4
> 
> ftpput and ftpget don't work. The sockaddr_in.sin_port is never being
> set. I made a fix in
> ftpgetput.c
> 
> Here are the changes in function ftpgetput_main:
> 
> 	bb_lookup_host(&s_in, server->host, server->port);
> 
> 	if (verbose_flag) {
> 		fprintf(stdout, "Connecting to %s[%s]:%d\n",
> 				server->host, inet_ntoa(s_in.sin_addr),
> 				htons(s_in.sin_port) );
> 	}

It works for me.

I changed the interface to bb_lookup_host a few days ago so it
doesnt handle setting the port, setting port is handled by
bb_lookup_port which is a bit fancier.

I suspect you have mixed up some old and new files, current cvs and -pre5
should both work.



Glenn


_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic