On Sat, Oct 30, 2004 at 01:22:16AM +0200, Hujer wrote:
> anyway, i have the same problem as the guy in
> http://www.mail-archive.com/lftp%40uniyar.ac.ru/msg01693.html
> 
> i tested with 3.0.10 in debian unstable
> simple way to test :
> mirror -I checksum.md5 ftp://ftp.sanet.sk/incoming 
> ftp://ftp.elf.stuba.sk/pub/incoming

Here is the patch to fix FXP transfer mode.

-- 
   Alexander.
Index: ftpclass.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/ftpclass.cc,v
retrieving revision 1.338
diff -u -p -r1.338 ftpclass.cc
--- ftpclass.cc 14 Oct 2004 12:02:37 -0000      1.338
+++ ftpclass.cc 1 Nov 2004 06:53:23 -0000
@@ -1912,7 +1912,7 @@ int   Ftp::Do()
            p=(unsigned char*)&conn->data_sa.in.sin_port;
            sockaddr_u control_sa;
            // check if data socket address is unbound
-           if(a[0]|a[1]|a[2]|a[3]==0)
+           if((a[0]|a[1]|a[2]|a[3])==0)
            {
               socklen_t addr_len=sizeof(control_sa);
               getsockname(conn->control_sock,&control_sa.sa,&addr_len);

Reply via email to