On Tue, Jul 05, 2005 at 10:26:09AM -0700, Todd Wells wrote:
> I have experienced the following segmentation fault when trying to rels
> or mget from a vendor's server.   The rels or mget works if there is a
> file to list/retrieve, but does not work on an empty directory.

Does this patch help?  I have not noticed this bug before, as I could not
find a completely empty directory - all directories here have .. and . entries.

--
   Alexander.                      | http://www.yars.free.net/~lav/
Index: SFtp.h
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/SFtp.h,v
retrieving revision 1.17
diff -u -p -r1.17 SFtp.h
--- SFtp.h      22 Jun 2005 08:04:21 -0000      1.17
+++ SFtp.h      6 Jul 2005 06:03:49 -0000
@@ -718,7 +718,7 @@ public:
    void Cleanup();
    void CleanupThis();
 
-   FileSet *GetFileSet() { FileSet *fset=file_set; file_set=0; return fset; }
+   FileSet *GetFileSet() { FileSet *fset=file_set; file_set=0; return 
fset?fset:new FileSet; }
 };
 
 class SFtpDirList : public DirList

Reply via email to