On Wed, Sep 07, 2005 at 09:21:10AM +0200, Michael Petuschak wrote:
> <a href="/dir1//"></a><br>
>
> As a result, lftp was sitting in dir1 and doing just
> "Mirroring directory `'" all the time, eating more and more memory.
Does this patch help?
--
Alexander.
Index: HttpDir.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/HttpDir.cc,v
retrieving revision 1.88
diff -u -p -r1.88 HttpDir.cc
--- HttpDir.cc 9 Aug 2005 06:40:40 -0000 1.88
+++ HttpDir.cc 7 Sep 2005 09:11:51 -0000
@@ -934,6 +934,13 @@ parse_url_again:
type[0]=';';
}
+ if(link_len==0)
+ {
+ strcpy(link_target,".");
+ link_len=1;
+ info.is_directory=true;
+ }
+
bool show_in_list=true;
if(icon && (link_target[0]=='/' || link_target[0]=='~'))
show_in_list=false; // makes apache listings look better.