Re: Why is "PROT P" issued twice?

"Alexander V. Lukyanov" <[email protected]>
Newsgroups gmane.network.lftp.user
Message-ID <[email protected]>
On Mon, Sep 08, 2014 at 07:30:53PM -0400, Stephen Powell wrote:
> On Mon, 08 Sep 2014 03:53:13 -0400 (EDT), Alexander Lukyanov wrote:
> > Please send the debug log (use command "debug" to turn it on).
>
> For security reasons I have redacted or changed some things,
> such as userids, passwords, domain names, IP addresses, etc.
> This keeps me employed.  This is lftp version 4.5.4, Readline 6.3,
> GnuTLS 3.3.6, zlib 1.2.8.

Thanks! Here is a patch to fix the problem.

--
   Alexander.

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp
diff (text/plain, 385 B)
diff --git a/src/ftpclass.cc b/src/ftpclass.cc
index 00a4f28..5d7fbc8 100644
--- a/src/ftpclass.cc
+++ b/src/ftpclass.cc
@@ -1610,7 +1610,8 @@ int   Ftp::Do()
 
       if(expect->Has(Expect::FEAT)
       || expect->Has(Expect::OPTS_UTF8)
-      || expect->Has(Expect::LANG))
+      || expect->Has(Expect::LANG)
+      || expect->Has(Expect::PROT))
 	 goto usual_return;
 
 #if USE_SSL
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.