summaryrefslogtreecommitdiff
path: root/networking/ftpd.c
diff options
context:
space:
mode:
authorDenys Vlasenko2010-04-21 18:05:10 -0400
committerDenys Vlasenko2010-04-21 18:05:10 -0400
commit238c83bd8237e482911b8272e7f420060f5e7714 (patch)
tree2e6d6e0ad3de6858fcc5e4672ef00b9bcaf97540 /networking/ftpd.c
parent5a7c72015c0562dbe19f1e493b54b4c9db7f6f3a (diff)
downloadbusybox-238c83bd8237e482911b8272e7f420060f5e7714.zip
busybox-238c83bd8237e482911b8272e7f420060f5e7714.tar.gz
ftpd: work around LIST -aXYZ too, not only LIST -lXYZ
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ftpd.c')
-rw-r--r--networking/ftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c
index 9d43ea3..c63b931 100644
--- a/networking/ftpd.c
+++ b/networking/ftpd.c
@@ -618,10 +618,10 @@ popen_ls(const char *opt)
argv[4] = NULL;
/* Improve compatibility with non-RFC conforming FTP clients
- * which send e.g. "LIST -l", "LIST -la".
+ * which send e.g. "LIST -l", "LIST -la", "LIST -aL".
* See https://bugs.kde.org/show_bug.cgi?id=195578 */
if (ENABLE_FEATURE_FTPD_ACCEPT_BROKEN_LIST
- && G.ftp_arg && G.ftp_arg[0] == '-' && G.ftp_arg[1] == 'l'
+ && G.ftp_arg && G.ftp_arg[0] == '-'
) {
const char *tmp = strchr(G.ftp_arg, ' ');
if (tmp) /* skip the space */