Hello

I found two bugs in ftpproxy.

* ftpproxy say "-ERR: unexpected server greeting:"
  when receive follwring greeting.

220-WarFTPD
    WarFTPd 1.71.02 (Feb 14 2000) Ready
    (C)opyright 1996 - 2000 by Jarle (jgaa) Aase - all rights reserved.
220 Please enter your user name.


* ftpproxy and windows 2000's command line ftp client hung up
  when ftp server respons reply code and space character
  only.  It is because ftpproxy delete last space character of line and
  win2k's ftp client wait for 3 digit and space.

Original respons
220-first line<CR><LF>
  second line
220<SP><CR><LF>

ftpproxy's rewrite respons like this.
220-first line<CR><LF>
  second line
220<CR><LF>

I think this space is required because rfc959 section 4.2 said

    The last line will begin with the same code, followed
    immediately by Space <SP>, optionally some text, and the Telnet
    end-of-line code.


If my explanation is not enough, I can send my 3 minutes work patch.

Thank you for developing nice software.

---------------------------
HOMMA Yuske
[EMAIL PROTECTED]

Reply via email to