On Wed, Apr 29, 2009 at 01:03:23PM +0300, jacek.luc...@tieto.com wrote:
> Looks like there might be a bug in lftp 3.7.12 release. I've compiled this 
> version on RHEL 4.7 and after executing set -a command, lftp gives 
> Segmentation Fault. If you need more info, just let me know.

Please try this patch.

--
   Alexander.
Index: CopyJob.h
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/CopyJob.h,v
retrieving revision 1.27
diff -u -p -r1.27 CopyJob.h
--- CopyJob.h   27 Apr 2009 07:45:26 -0000      1.27
+++ CopyJob.h   29 Apr 2009 13:31:02 -0000
@@ -58,8 +58,8 @@ public:
 
    void SuspendInternal() { c->SuspendSlave(); }
    void ResumeInternal()  { c->ResumeSlave(); }
-   void Fg() { c->Fg(); Job::Fg(); }
-   void Bg() { Job::Bg(); c->Bg(); }
+   void Fg() { if(c) c->Fg(); Job::Fg(); }
+   void Bg() { Job::Bg(); if(c) c->Bg(); }
 
    int AcceptSig(int sig);
    pid_t GetProcGroup() { return c?c->GetProcGroup():0; }

Reply via email to