--- proftpd-1.3.2a/modules/mod_facts.c.mlsd 2009-04-28 22:17:45.000000000 +0100
+++ proftpd-1.3.2a/modules/mod_facts.c 2009-09-07 14:17:39.000000000 +0100
@@ -841,12 +841,13 @@
return PR_ERROR(cmd);
}
- /* RFC3659 explicitly does NOT support glob characters. */
+ /* RFC3659 explicitly does NOT support glob characters. So warn about
+ * this, but let the command continue as is. We don't actually call
+ * glob(3) here, so no expansion will occur.
+ */
if (strpbrk(decoded_path, "{[*?") != NULL) {
- pr_log_debug(DEBUG2, MOD_FACTS_VERSION ": unable to handle MLSD command: "
- "target '%s' contains glob characters", decoded_path);
- pr_response_add_err(R_550, _("Unable to handle command"));
- return PR_ERROR(cmd);
+ pr_log_debug(DEBUG9, MOD_FACTS_VERSION ": glob characters in MLSD ('%s') "
+ "ignored", decoded_path);
}
/* Make sure that the given path is actually a directory. */