diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2014-06-25 16:23:59 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-06-25 16:23:59 +0200 |
commit | de3cae1348f212effd3f2838301596d15c6b3e54 (patch) | |
tree | 1b0150eca3078a6ce15db1092df17f623ea97555 | |
parent | 5aeae36e2b8bcee19c8eb189f55b19febaab4c42 (diff) | |
download | busybox-w32-de3cae1348f212effd3f2838301596d15c6b3e54.tar.gz busybox-w32-de3cae1348f212effd3f2838301596d15c6b3e54.tar.bz2 busybox-w32-de3cae1348f212effd3f2838301596d15c6b3e54.zip |
ftpd: support deprecated XPWD command
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/ftpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c index 33db964fa..b4d73e55d 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c | |||
@@ -1085,6 +1085,8 @@ enum { | |||
1085 | const_PASV = mk_const4('P', 'A', 'S', 'V'), | 1085 | const_PASV = mk_const4('P', 'A', 'S', 'V'), |
1086 | const_PORT = mk_const4('P', 'O', 'R', 'T'), | 1086 | const_PORT = mk_const4('P', 'O', 'R', 'T'), |
1087 | const_PWD = mk_const3('P', 'W', 'D'), | 1087 | const_PWD = mk_const3('P', 'W', 'D'), |
1088 | /* Same as PWD. Reportedly used by windows ftp client */ | ||
1089 | const_XPWD = mk_const4('X', 'P', 'W', 'D'), | ||
1088 | const_QUIT = mk_const4('Q', 'U', 'I', 'T'), | 1090 | const_QUIT = mk_const4('Q', 'U', 'I', 'T'), |
1089 | const_REST = mk_const4('R', 'E', 'S', 'T'), | 1091 | const_REST = mk_const4('R', 'E', 'S', 'T'), |
1090 | const_RETR = mk_const4('R', 'E', 'T', 'R'), | 1092 | const_RETR = mk_const4('R', 'E', 'T', 'R'), |
@@ -1292,7 +1294,7 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv) | |||
1292 | WRITE_OK(FTP_ALLOOK); | 1294 | WRITE_OK(FTP_ALLOOK); |
1293 | else if (cmdval == const_SYST) | 1295 | else if (cmdval == const_SYST) |
1294 | cmdio_write_raw(STR(FTP_SYSTOK)" UNIX Type: L8\r\n"); | 1296 | cmdio_write_raw(STR(FTP_SYSTOK)" UNIX Type: L8\r\n"); |
1295 | else if (cmdval == const_PWD) | 1297 | else if (cmdval == const_PWD || cmdval == const_XPWD) |
1296 | handle_pwd(); | 1298 | handle_pwd(); |
1297 | else if (cmdval == const_CWD) | 1299 | else if (cmdval == const_CWD) |
1298 | handle_cwd(); | 1300 | handle_cwd(); |