mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-18 02:39:21 +01:00
no-op USER and PASS
This commit is contained in:
parent
995598e41f
commit
fdd70cb5f1
10
source/ftp.c
10
source/ftp.c
@ -1713,10 +1713,7 @@ FTP_DECLARE(PASS)
|
|||||||
|
|
||||||
ftp_session_set_state(session, COMMAND_STATE);
|
ftp_session_set_state(session, COMMAND_STATE);
|
||||||
|
|
||||||
if(strcasecmp(args, "anonymous") != 0)
|
return ftp_send_response(session, 230, "OK\r\n");
|
||||||
return ftp_send_response(session, 430, "Invalid user name\r\n");
|
|
||||||
|
|
||||||
return ftp_send_response(session, 200, "OK\r\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FTP_DECLARE(PASV)
|
FTP_DECLARE(PASV)
|
||||||
@ -2105,8 +2102,5 @@ FTP_DECLARE(USER)
|
|||||||
|
|
||||||
ftp_session_set_state(session, COMMAND_STATE);
|
ftp_session_set_state(session, COMMAND_STATE);
|
||||||
|
|
||||||
if(strcasecmp(args, "anonymous") != 0)
|
return ftp_send_response(session, 230, "OK\r\n");
|
||||||
return ftp_send_response(session, 430, "Invalid user name\r\n");
|
|
||||||
|
|
||||||
return ftp_send_response(session, 200, "OK\r\n");
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user