Re: lftp >= lftp-pre3.0.0-20040212 problem

2004-05-04 Thread Alexander V. Lukyanov
On Sun, May 02, 2004 at 01:36:32PM +0900, SHIOTA Shoichi wrote:
> Please commit this patch.
>
> $ cat AIX.patch
> --- src/StatusLine.cc.orig  2004-03-13 22:36:09 +0900
> +++ src/StatusLine.cc   2004-05-01 16:31:18 +0900
> @@ -234,6 +234,7 @@
>  wpos--;  // FIXME: assumption - space width is 1
>}
>
> +  if ((end-newstr[curr_line]) > 0)
>write(fd,newstr[curr_line],end-newstr[curr_line]);
>
>const char *shown_curr=(curr_line>=shown.Count()?"":shown[curr_line]);

Thanks! Patch applied.

--
   Alexander.


Segmentation fault in 3.0.3

2004-05-04 Thread Wang WenRui
Hi,

  There is segmentation fault when I connect to a ftp site. Again, this
  is inconformity of the server software with RFCs. But lftp shouldn't
  crash.

  The debug message and stack trace is :

Detaching after fork from child process 14188.
lftp 202.38.72.133:~> debug
lftp 202.38.72.133:~> ls
 Connecting to 202.38.72.133 (202.38.72.133) port 508
<--- 220 Gene6 FTP Server v3.0.0  (Build 34) ready...
---> FEAT
<--- 211-Extensions supported:
<---  AUTH TLS
<---  PBSZ
<---  PROT
<---  CLNT
<---  COMPRESSION NONE*;ZLIB;
<---  MDTM
<---  MLST type*;size*;created;modify*;
<---  PASV
<---  REST STREAM
<---  SIZE
<---  TVFS
<---  UTF8
<---  XCRC "filename" SP EP
<---  XMD5 "filename" SP EP
<--- 211 End.
---> OPTS UTF8 ON
<--- 530 Please login with USER and PASS first.
---> USER anonymous
<--- 331 Password required for anonymous.
---> PASS lftp@
<--- 230-=
<---  Gaslab FTPmusic??movie??tvrip??0day??Others
<---
<---  202.38.76.136?04/05/04 16:51:40.
<---  ???05d00:33:06.
<---
<---  =
<---  1/4 ??
<---
<---  ?0??
<---  7??
<---  ?IP?500 KBps
<---  582.067 GBytes
<---  Θ???59.236 MBytes
<---  ?14227
<---  ?Θ??20
<---  ??1.376 MBytes/s
<---  ??1004.003 KBytes/s
<---  ??1.602 GBytes
<---  =
<---   [EMAIL PROTECTED]  [EMAIL PROTECTED]
<---  =
<---   ???
<---
<---   1.10???
<--- 30???5???10?
<---   2.1??! ?Ban C??IP??
<---  =
<---   Movie??У
<---   ftp://202.38.73.135
<---   ftp://202.38.73.101:411
<---  =
<--- 230 User anonymous logged in.
---> PWD
<--- ==
<---   Movie??У
<---   ftp://202.38.73.135
<---   ftp://202.38.73.101:411
<---  =
<--- 230 User anonymous logged in.
<--- 257 "/" is current directory.

Program received signal SIGSEGV, Segmentation fault.
0x080c9196 in Ftp::ExpectQueue::Pop (this=0x8193a10) at ftpclass.cc:3086
3086   first=first->next;
(gdb) bt
#0  0x080c9196 in Ftp::ExpectQueue::Pop (this=0x8193a10) at
ftpclass.cc:3086
#1  0x080ca3bb in Ftp::CheckResp (this=0x8165590, act=257) at
ftpclass.cc:3509
#2  0x080c7b02 in Ftp::ReceiveResp (this=0x8165590) at ftpclass.cc:2565
#3  0x080c3bd8 in Ftp::Do (this=0x8165590) at ftpclass.cc:1410
#4  0x0809831b in SMTask::Schedule () at SMTask.cc:173
#5  0x08075d9c in WaitDone (exec=0x815a4b8) at lftp.cc:73
#6  0x0807647b in main (argc=4, argv=0xb2d4) at lftp.cc:404
(gdb) frame 1
#1  0x080ca3bb in Ftp::CheckResp (this=0x8165590, act=257) at
ftpclass.cc:3509
3509   Expect *exp=expect->Pop();
(gdb) p *expect
$1 = {first = 0x0, last = 0x8193a10, count = 0}


Best regards
Wang


Re: Cannot connect to remote server in 3.0.3

2004-05-04 Thread Wang WenRui
Around 17 o'clock on 04 May, Wang WenRui wrote:
> Hi,
> 
>   lftp cannot connect to a remote server, which works well with other
>   clients. I believe it is a bug in ftpclass.cc dealing with 221 code.
sorry, it seems to be inconformity of the server software with rfc 2389.
> 
>   lftp [EMAIL PROTECTED]:~> debug
>   lftp [EMAIL PROTECTED]:~> ls
>    Connecting to mail.ustc.edu.cn (202.38.64.10) port 21
>   <--- 220-   Welcome to USTC Email Server
>   <--- 220-欢迎来到中国科大邮件服务器
>   <--- 220-
>   <--- 220- 安全设置: 1. 用户只能在自己的个人目录下操作
>   <--- 220-   2. 不可使用chmod命令. 默认上传的文件别人不可读写,
>   <--- 220-  上传个人主页文件请先quote site umask 022
>   <--- 220-
>   <--- 220 mail FTP server ready.
>   ---> FEAT
>   <--- 221-Extensions supported:
>   <---  REST STREAM
>   <---  SIZE
>   <---  MDTM
>   <---  TVFS
>   <---  HOST
>   <--- 221 End
>    remote end closed connection
>    Closing control socket
> 
> 
>   Thanks.
> 
> Best regards
> Wang


Cannot connect to remote server in 3.0.3

2004-05-04 Thread Wang WenRui
Hi,

  lftp cannot connect to a remote server, which works well with other
  clients. I believe it is a bug in ftpclass.cc dealing with 221 code.

  lftp [EMAIL PROTECTED]:~> debug
  lftp [EMAIL PROTECTED]:~> ls
   Connecting to mail.ustc.edu.cn (202.38.64.10) port 21
  <--- 220-   Welcome to USTC Email Server
  <--- 220-欢迎来到中国科大邮件服务器
  <--- 220-
  <--- 220- 安全设置: 1. 用户只能在自己的个人目录下操作
  <--- 220-   2. 不可使用chmod命令. 默认上传的文件别人不可读写,
  <--- 220-  上传个人主页文件请先quote site umask 022
  <--- 220-
  <--- 220 mail FTP server ready.
  ---> FEAT
  <--- 221-Extensions supported:
  <---  REST STREAM
  <---  SIZE
  <---  MDTM
  <---  TVFS
  <---  HOST
  <--- 221 End
   remote end closed connection
   Closing control socket


  Thanks.

Best regards
Wang