You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_ftp-commits@incubator.apache.org by wr...@apache.org on 2007/02/08 05:18:36 UTC
svn commit: r504785 - /incubator/mod_ftp/trunk/modules/ftp/ftp_commands.c
Author: wrowe
Date: Wed Feb 7 21:18:34 2007
New Revision: 504785
URL: http://svn.apache.org/viewvc?view=rev&rev=504785
Log:
Register PASS although it does not require auth when handling the request;
it requires auth to validate the user/password.
Modified:
incubator/mod_ftp/trunk/modules/ftp/ftp_commands.c
Modified: incubator/mod_ftp/trunk/modules/ftp/ftp_commands.c
URL: http://svn.apache.org/viewvc/incubator/mod_ftp/trunk/modules/ftp/ftp_commands.c?view=diff&rev=504785&r1=504784&r2=504785
==============================================================================
--- incubator/mod_ftp/trunk/modules/ftp/ftp_commands.c (original)
+++ incubator/mod_ftp/trunk/modules/ftp/ftp_commands.c Wed Feb 7 21:18:34 2007
@@ -94,11 +94,13 @@
}
/* Only limit commands that are implemented and access checked
- * (not aliases)
+ * (not aliases). PASS is a special case, it is verified after
+ * invocation, login isn't needed prior to processing.
*/
if (pf && (flags & FTP_NEED_LOGIN)) {
ap_method_register(FTPMethodPool, key);
}
+ ap_method_register(FTPMethodPool, "PASS");
}
static int ftp_run_handler(request_rec *r, struct ftp_cmd_entry *cmd,