On Sat, Mar 24, 2007 at 06:19:33PM -0400, Justin Piszcz wrote:
> If you attempt to pget something in a directory you do not have write 
> access in, lftp segfaults.

Here is a fix.

--- pgetJob.cc  26 Mar 2007 04:14:28 -0000      1.41
+++ pgetJob.cc  26 Mar 2007 07:18:46 -0000
@@ -85,6 +85,8 @@ int pgetJob::Do()
    {
       cp->Resume();
       m=super::Do(); // it can call NextFile.
+      if(!cp)
+        return m;
    }
    else if(chunks)
       cp->Suspend();

-- 
   Alexander.

Reply via email to