sun_bright@o2.pl | 1 Feb 09:39 2008
Picon

lftp 3.6.3 on Mac OS X

Hi,

I'm trying to install lftp 3.6.3 on OSX Leopard with no success:

./configure
(...)
checking for readline... ./configure: line 27701: -d: command not found
configure: error: need installed readline-devel package

I have readline 4.3 and 5.2 installed on my system.

I also tried to configure latest cvs:

./configure --with-included-readline

but same error has occured.

Any ideas?

greets
Michael

Charlie Allom | 1 Feb 12:31 2008

Re: ProFTPd issues with 3.6.x (Re: GlobalScape = borked ? (please keep me cc'd))

Alex

can you tell me what ftp:waiting-150-timeout does? setting it to 1
seems to work but the standard '5' just (seems) to go on forever..

--

-- 
 http://devblog.playlouder.com/

Justin Piszcz | 5 Feb 00:45 2008

lftp-3.6.3 new bug (Segmentation fault)

I tried to paste set -a | grep -i regex but I miss-pasted and it asked me 
for the password, I hit control-c to get out of it and...

lftp user <at> 1.2.3.4:/public> lftp user <at> 1.2.3.4:/public> set -a | grep -i regex
Password: 
(i hit control-c because it was a miss-paste, and bam, core dump)

Segmentation fault (core dumped)
user <at> host:homedir$

Did it again just to make sure it was not a one-time thing.
user <at> host:homedir$ lftp
lftp :~> open bookmarked_ftp
lftp user <at> 1.2.3.4:~> cd /public
lftp user <at> 1.2.3.4:/public> lftp user <at> 1.2.3.4:/public> set -a | grep -i regex
Password: 
Segmentation fault (core dumped)
user <at> host:homedir$

And the backtrace:

#0  0x00002ac7c1beda20 in ?? () from /lib/libc.so.6
(gdb) bt
#0  0x00002ac7c1beda20 in ?? () from /lib/libc.so.6
#1  0x0000000000414884 in Ref<FDStream>::operator= (this=0x71c3e0, p=0x0)
     at Ref.h:38
#2  0x00000000004205d0 in CmdExec::parse_one_cmd (this=0x71c350)
     at parsecmd.cc:58
#3  0x0000000000413a8c in CmdExec::Do (this=0x71c350) at CmdExec.cc:643
#4  0x0000000000440395 in SMTask::Schedule () at SMTask.cc:226
(Continue reading)

Alexander V. Lukyanov | 5 Feb 16:47 2008
Picon

Re: lftp-3.6.3 new bug (Segmentation fault)

On Mon, Feb 04, 2008 at 06:45:41PM -0500, Justin Piszcz wrote:
> I tried to paste set -a | grep -i regex but I miss-pasted and it asked me
> for the password, I hit control-c to get out of it and...

Here is the patch.

--
   Alexander.
Index: parsecmd.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/parsecmd.cc,v
retrieving revision 1.14
diff -u -p -r1.14 parsecmd.cc
--- parsecmd.cc	24 Oct 2007 14:38:49 -0000	1.14
+++ parsecmd.cc	5 Feb 2008 15:45:36 -0000
 <at>  <at>  -52,12 +52,7  <at>  <at>  CmdExec::parse_result CmdExec::parse_one
    else
       args=new ArgV;

-   if(output)
-   {
-      delete output;
-      output=0;
-   }
-
+   output=0;
    char redir_type=0;
    background=0;
(Continue reading)

frytaz | 5 Feb 15:36 2008
Picon

{Disarmed} lftp bug?

Hi there i wanted to say that lftp rocks! at first

i found bug or maybe im doing it wrong way

when i run

lftp -f cmd.lst

cmd.lst
open -p 21 MailScanner warning: numerical links are often malicious: 1.2.3.4
user login pass
mirror --loop /dir/src ftp://user:pass <at> 11.22.33.44:2121/dir/dest

this script repeat sending and overwrite files on destination ftp all over again till i cancel it
i tried --while-ok or --until-ok but then it say that lftp dont recognize that cmd

any clue how to stop looping when both src and dest dirs have same files/dirs ?

Justin Piszcz | 5 Feb 17:44 2008

Re: lftp-3.6.3 new bug (Segmentation fault)


On Tue, 5 Feb 2008, Alexander V. Lukyanov wrote:

> On Mon, Feb 04, 2008 at 06:45:41PM -0500, Justin Piszcz wrote:
>> I tried to paste set -a | grep -i regex but I miss-pasted and it asked me
>> for the password, I hit control-c to get out of it and...
>
> Here is the patch.
>
> --
>   Alexander.
>

Thanks!

Patch applied, re-ran the test scenario and now:

Unknown command `-a'.

Works! No more segfaults, thanks.

Justin.

Alexander V. Lukyanov | 6 Feb 06:11 2008
Picon

Re: {Disarmed} lftp bug?

On Tue, Feb 05, 2008 at 03:36:15PM +0100, frytaz wrote:
> mirror --loop /dir/src ftp://user:pass <at> 11.22.33.44:2121/dir/dest
> 
> this script repeat sending and overwrite files on destination ftp all over
> again till i cancel it

Try to add --ignore-time or --only-newer option. If the server supports it,
`set ftp:use-mdtm-overloaded yes' or `set ftp:use-site-utime yes' can help too.

--

-- 
   Alexander.

Alexander V. Lukyanov | 6 Feb 08:10 2008
Picon

Re: ProFTPd issues with 3.6.x (Re: GlobalScape = borked ? (please keep me cc'd))

On Thu, Jan 31, 2008 at 08:55:11AM +0000, Charlie Allom wrote:
> thanks - this reconnects again like 3.5 but there is something more
> subtle going on.

Please try this additional patch.

--
   Alexander.
Index: ftpclass.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/ftpclass.cc,v
retrieving revision 1.437
diff -u -p -r1.437 ftpclass.cc
--- ftpclass.cc	31 Jan 2008 07:55:14 -0000	1.437
+++ ftpclass.cc	6 Feb 2008 06:38:22 -0000
 <at>  <at>  -328,9 +328,6  <at>  <at>  bool Ftp::Transient5XX(int act)
 // 226 Transfer complete.
 void Ftp::TransferCheck(int act)
 {
-   if(state==WAITING_150_STATE)
-      conn->received_150=true;
-
    if(act==225 || act==226) // data connection is still open or ABOR worked.
    {
       copy_done=true;
 <at>  <at>  -2203,6 +2200,14  <at>  <at>  int   Ftp::Do()
       {
 	 LogError(0,"%s",conn->data_iobuf->ErrorText());
 	 conn->CloseDataSocket();
+	 // workaround for proftpd bug - it resets data connection when no files found.
+	 if(mode==LIST && expect->IsEmpty() && !conn->received_150 && conn->data_iobuf->GetPos()==0)
+	 {
+	    DataClose();
+	    state=EOF_STATE;
+	    eof=true;
+	    m=MOVED;
+	 }
       }
       // handle errors on data connection only when storing or got all replies
       // and read all data.
 <at>  <at>  -2581,6 +2586,13  <at>  <at>  int Ftp::ReceiveOneLine()
 	 skip_len=nl-resp+1;
 	 break;
       }
+      if(nl==resp+resp_size-1 && now-conn-≥control_recv->EventTime()>5)
+      {
+	 LogError(1,"server bug: single <NL>");
+	 line_len=nl-resp;
+	 skip_len=nl-resp+1;
+	 break;
+      }
       nl=find_char(nl+1,resp_size-(nl+1-resp),'\n');
    }

frytaz | 6 Feb 10:51 2008
Picon

Re: {Disarmed} lftp bug?

Hi, Lftp still trying to overwrite files with --loop,

Is there a way to repeat mirror command few times but without disconnecting from ftp servers ?

On 06/02/2008, Alexander V. Lukyanov <lav <at> netis.ru> wrote:
On Tue, Feb 05, 2008 at 03:36:15PM +0100, frytaz wrote:
> mirror --loop /dir/src ftp://user:pass <at> 11.22.33.44:2121/dir/dest
>
> this script repeat sending and overwrite files on destination ftp all over
> again till i cancel it

Try to add --ignore-time or --only-newer option. If the server supports it,
`set ftp:use-mdtm-overloaded yes' or `set ftp:use-site-utime yes' can help too.

--
   Alexander.

Hamir | 6 Feb 12:08 2008

Re: ssl:check-hostname configuration item

Hi,
 
I am working with lftp and ssl:check-hostname is not working for me.
 
Please provide me a patch and guide to make ssl:check-hostname work.
 
Thanks & Regards,
Hamir

-- eInfochips Business Disclaimer: This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose,distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated.Nothing contained in this message shall be construed as an offer or acceptance of any offer by eInfochips Limited and/or eInfochips Inc(“eInfochips”) unless sent with that express intent and with due authority of eInfochips.EInfochips has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.

Gmane