Re: [PATCH] Reconfig() is not executed after set commands when using lftp -c or lftp -e
"Alexander V. Lukyanov" <[email protected]> Wed, 8 Jun 2011 17:18:10 +0400
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Wed, Jun 01, 2011 at 06:50:53PM +0200, Fernando Gutierrez wrote:
> **Problem:
> Certain options like cmd:parallel won't work when used with lftp -c
> because Reconfig is never called. This happens to all the options
This patch should fix the problem "properly". ResMgr::Set calls
Reconfig methods of all ResClient instances automatically.
--
Alexander.
--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff1
Index: CmdExec.h
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/CmdExec.h,v
retrieving revision 1.74
diff -u -p -r1.74 CmdExec.h
--- CmdExec.h 29 Apr 2011 04:58:27 -0000 1.74
+++ CmdExec.h 8 Jun 2011 13:12:54 -0000
@@ -59,7 +59,7 @@ public:
extern CmdFeeder *lftp_feeder; // feeder to use after 'lftp' command
-class CmdExec : public SessionJob
+class CmdExec : public SessionJob, public ResClient
{
public:
// current command data
--AqsLC8rIMeq19msA--