On Mon, Apr 17, 2006 at 03:01:29PM -0400, Stephane Desaunay wrote:
> and if someone fxp the same dir I have this result:
> 
> ---> PRET STOR stm-push-xvid.r05
> <--- 553 Requested action not taken. File exists.
> ---> CPSV
> <--- 500 You need to use a client supporting PRET (PRE Transfer) to use PASV

Please try this patch.

-- 
   Alexander.
Index: ftpclass.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/ftpclass.cc,v
retrieving revision 1.378
diff -u -p -r1.378 ftpclass.cc
--- ftpclass.cc 16 Feb 2006 08:03:32 -0000      1.378
+++ ftpclass.cc 18 Apr 2006 06:50:51 -0000
@@ -3763,8 +3763,13 @@ void Ftp::CheckResp(int act)
 
    case Expect::PRET:
       if(cmd_unsupported(act))
+      {
         conn->pret_supported=false;
-      goto ignore;
+        break;
+      }
+      if(is5XX(act))
+        SetError(NO_FILE,all_lines);
+      break;
 
    case Expect::PASV:
    case Expect::EPSV:

Reply via email to