Custom compile request: Ignore CWD without argument

Moderator: Project members

Post Reply
Message
Author
verbose
500 Command not understood
Posts: 2
Joined: 2006-03-19 02:52

Custom compile request: Ignore CWD without argument

#1 Post by verbose » 2006-03-19 03:15

I have a broken FTP client that is deployed at hundreds of locations that sends a CWD with no argument immediately after logging in. The MS IIS FTP server happily accepts this and returns 250. FileZilla returns a 501 syntax error. Would someone be able to do me a tremendous favor and make the following change to ControlSocket.cpp and recompile the FileZilla server? I don't have the necessary windows build environment.

version 0.9.13b
ControlSocket.cpp
comment out line 619:

Code: Select all

Send(_T("501 Syntax error"));
and insert:

Code: Select all

Send(_T("250 CWD Successful."))
I would be eternally thankful.

verbose
500 Command not understood
Posts: 2
Joined: 2006-03-19 02:52

#2 Post by verbose » 2006-03-20 19:49

Oops, my change won't work as specified. Instead, I think this will work for me:

change line 440:

Code: Select all

COMMAND_CWD,  "CWD",  FALSE, FALSE
and insert above line 616:

Code: Select all

 if (args == "") { Send(_T("250 CWD successful.")); break; }

Post Reply