HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: ftp error/mishandling (bug?)
Author: Xavier Roche
Date: 03/21/2002 19:49
 
> The file that HTTrack was unable to get via FTP was:
> <ftp://ftp.crynwr.com/drivers/pktd11.zip>

Problem found, and fixed for the next release ;)


# diff -d -b --unified /temp/httrack-
3.16/src/htsftp.c /temp/httrack-3.16-3/src/htsftp.c
--- /temp/httrack-3.16/src/htsftp.c     Sun Mar 10 
16:27:50 2002
+++ /temp/httrack-3.16-3/src/htsftp.c      Thu Mar 21 
19:45:08 2002
@@ -351,7 +351,7 @@
         send_line(soc_ctl,line);
         get_line(soc_ctl,line,timeout);
         _CHECK_HALT_FTP;
-        if (line[0]=='3') {
+        if ((line[0]=='3') || (line[0]=='2')) {
           // --PASS--
           strcpy(back->info,"login: pass");
           sprintf(line,"PASS %s",pass);
@@ -503,7 +503,7 @@
                   send_line(soc_ctl,line);
                   get_line(soc_ctl,line,timeout);
                   _CHECK_HALT_FTP;
-                  if (line[0]=='3') {  // ok
+                  if ((line[0]=='3') || (line[0]
=='2')) {  // ok
                     rest_understood=1;
                   } // sinon tant pis
                 }
 
Reply Create subthread


All articles

Subject Author Date
ftp error/mishandling (bug?)

03/19/2002 05:16
Re: ftp error/mishandling (bug?)

03/19/2002 07:46
Re: ftp error/mishandling (bug?)

03/21/2002 18:07
Re: ftp error/mishandling (bug?)

03/21/2002 19:49




f

Created with FORUM 2.0.11