On Sat, Oct 06, 2007 at 09:05:15AM -0400, Jeffrey Litvin wrote:
> Tried it.  With this option it looks like the STAT command gets wiped out
> and LIST once it fails over to try to use that..
> ....
> ---> CLNT lftp/pre3.6.0.20070920
> <--- 200 Command okay
> --->  -la

Oops. Here is the patch to fix it.

--
   Alexander.
Index: xstring.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/xstring.cc,v
retrieving revision 1.17
diff -u -p -r1.17 xstring.cc
--- xstring.cc  29 Aug 2007 11:20:14 -0000      1.17
+++ xstring.cc  8 Oct 2007 06:42:21 -0000
@@ -269,7 +269,7 @@ xstring &xstring::cat(const char *first,
    va_list va;
    va_start(va,first);
    xstring& str=get_tmp();
-   str.truncate(0);
+   str.set(first);
    str.vappend(va);
    va_end(va);
    return str;

Reply via email to