diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-21 18:05:10 -0400 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-21 18:05:10 -0400 |
commit | 238c83bd8237e482911b8272e7f420060f5e7714 (patch) | |
tree | 2e6d6e0ad3de6858fcc5e4672ef00b9bcaf97540 | |
parent | 5a7c72015c0562dbe19f1e493b54b4c9db7f6f3a (diff) | |
download | busybox-w32-238c83bd8237e482911b8272e7f420060f5e7714.tar.gz busybox-w32-238c83bd8237e482911b8272e7f420060f5e7714.tar.bz2 busybox-w32-238c83bd8237e482911b8272e7f420060f5e7714.zip |
ftpd: work around LIST -aXYZ too, not only LIST -lXYZ
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/Config.in | 4 | ||||
-rw-r--r-- | networking/ftpd.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/networking/Config.in b/networking/Config.in index 61e59b244..ce7166f98 100644 --- a/networking/Config.in +++ b/networking/Config.in | |||
@@ -122,8 +122,8 @@ config FEATURE_FTPD_ACCEPT_BROKEN_LIST | |||
122 | default y | 122 | default y |
123 | depends on FTPD | 123 | depends on FTPD |
124 | help | 124 | help |
125 | Some ftp-clients (among them KDE's Konqueror) issue illegal | 125 | Some ftp clients (among them KDE's Konqueror) issue illegal |
126 | "LIST -la" requests. This option works around those problems. | 126 | "LIST -l" requests. This option works around such problems. |
127 | It might prevent you from listing files starting with "-" and | 127 | It might prevent you from listing files starting with "-" and |
128 | it increases the code size by ~40 bytes. | 128 | it increases the code size by ~40 bytes. |
129 | Most other ftp servers seem to behave similar to this. | 129 | Most other ftp servers seem to behave similar to this. |
diff --git a/networking/ftpd.c b/networking/ftpd.c index 9d43ea3a2..c63b9319e 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c | |||
@@ -618,10 +618,10 @@ popen_ls(const char *opt) | |||
618 | argv[4] = NULL; | 618 | argv[4] = NULL; |
619 | 619 | ||
620 | /* Improve compatibility with non-RFC conforming FTP clients | 620 | /* Improve compatibility with non-RFC conforming FTP clients |
621 | * which send e.g. "LIST -l", "LIST -la". | 621 | * which send e.g. "LIST -l", "LIST -la", "LIST -aL". |
622 | * See https://bugs.kde.org/show_bug.cgi?id=195578 */ | 622 | * See https://bugs.kde.org/show_bug.cgi?id=195578 */ |
623 | if (ENABLE_FEATURE_FTPD_ACCEPT_BROKEN_LIST | 623 | if (ENABLE_FEATURE_FTPD_ACCEPT_BROKEN_LIST |
624 | && G.ftp_arg && G.ftp_arg[0] == '-' && G.ftp_arg[1] == 'l' | 624 | && G.ftp_arg && G.ftp_arg[0] == '-' |
625 | ) { | 625 | ) { |
626 | const char *tmp = strchr(G.ftp_arg, ' '); | 626 | const char *tmp = strchr(G.ftp_arg, ' '); |
627 | if (tmp) /* skip the space */ | 627 | if (tmp) /* skip the space */ |