On Wed, Oct 29, 2008 at 11:24:07AM +0100, Kubitz Elmar wrote:
> I have been faced a problem using your tool LFTP through a ftp-proxy with 
> proxy authentication (type joined-acct).
> Strangely the login session was cancelled immediatelly after a successful 
> login, which was caused by a
> double ACCT command, sent to the ftp proxy. See ftp trace:

> lftp [EMAIL PROTECTED]> ls
> ls: Login failed: Account is required, set ftp:acct variable
> lftp [EMAIL PROTECTED]> set ftp:acct *value*
> lftp [EMAIL PROTECTED]> ls

Please try this patch.

--
   Alexander.
Index: ftpclass.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/ftpclass.cc,v
retrieving revision 1.447
diff -u -p -r1.447 ftpclass.cc
--- ftpclass.cc 15 Oct 2008 10:23:24 -0000      1.447
+++ ftpclass.cc 29 Oct 2008 10:50:40 -0000
@@ -447,7 +447,7 @@ void Ftp::LoginCheck(int act)
         try_time=now;  // count the reconnect-interval from this moment
       last_connection_failed=true;
    }
-   if(is3XX(act))
+   if(is3XX(act) && !expect->Has(Expect::ACCT_PROXY))
    {
       if(!QueryStringWithUserAtHost("acct"))
       {

Reply via email to