diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-09 04:18:00 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-09 04:18:00 +0000 |
commit | 3455285339be8cbeaf3f1396ec290226254ba3f1 (patch) | |
tree | 3913dcda81905463e142d23c6d227aa3a22c3be5 /networking/ftpd.c | |
parent | f1a11b5a4eca1e296a9557655c2a93fb01d5be46 (diff) | |
download | busybox-w32-3455285339be8cbeaf3f1396ec290226254ba3f1.tar.gz busybox-w32-3455285339be8cbeaf3f1396ec290226254ba3f1.tar.bz2 busybox-w32-3455285339be8cbeaf3f1396ec290226254ba3f1.zip |
ftpd: code shrink
Diffstat (limited to 'networking/ftpd.c')
-rw-r--r-- | networking/ftpd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c index ec9683adb..114975d02 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c | |||
@@ -954,7 +954,7 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv) | |||
954 | break; | 954 | break; |
955 | cmdio_write_raw(STR(FTP_NEEDUSER)" Login with USER\r\n"); | 955 | cmdio_write_raw(STR(FTP_NEEDUSER)" Login with USER\r\n"); |
956 | } else if (cmdval == const_QUIT) { | 956 | } else if (cmdval == const_QUIT) { |
957 | cmdio_write_raw(STR(FTP_GOODBYE)" Goodbye\r\n"); | 957 | cmdio_write_ok(FTP_GOODBYE); |
958 | return 0; | 958 | return 0; |
959 | } else { | 959 | } else { |
960 | cmdio_write_raw(STR(FTP_LOGINERR)" Login with USER and PASS\r\n"); | 960 | cmdio_write_raw(STR(FTP_LOGINERR)" Login with USER and PASS\r\n"); |
@@ -986,7 +986,7 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv) | |||
986 | * HELP, NOOP, QUIT. | 986 | * HELP, NOOP, QUIT. |
987 | */ | 987 | */ |
988 | /* ACCOUNT (ACCT) | 988 | /* ACCOUNT (ACCT) |
989 | * The argument field is a Telnet string identifying the user's account. | 989 | * "The argument field is a Telnet string identifying the user's account. |
990 | * The command is not necessarily related to the USER command, as some | 990 | * The command is not necessarily related to the USER command, as some |
991 | * sites may require an account for login and others only for specific | 991 | * sites may require an account for login and others only for specific |
992 | * access, such as storing files. In the latter case the command may | 992 | * access, such as storing files. In the latter case the command may |
@@ -999,14 +999,14 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv) | |||
999 | * is needed for a command issued later in the dialogue, the server | 999 | * is needed for a command issued later in the dialogue, the server |
1000 | * should return a 332 or 532 reply depending on whether it stores | 1000 | * should return a 332 or 532 reply depending on whether it stores |
1001 | * (pending receipt of the ACCounT command) or discards the command, | 1001 | * (pending receipt of the ACCounT command) or discards the command, |
1002 | * respectively. | 1002 | * respectively." |
1003 | */ | 1003 | */ |
1004 | 1004 | ||
1005 | while (1) { | 1005 | while (1) { |
1006 | uint32_t cmdval = cmdio_get_cmd_and_arg(); | 1006 | uint32_t cmdval = cmdio_get_cmd_and_arg(); |
1007 | 1007 | ||
1008 | if (cmdval == const_QUIT) { | 1008 | if (cmdval == const_QUIT) { |
1009 | cmdio_write_raw(STR(FTP_GOODBYE)" Goodbye\r\n"); | 1009 | cmdio_write_ok(FTP_GOODBYE); |
1010 | return 0; | 1010 | return 0; |
1011 | } | 1011 | } |
1012 | if (cmdval == const_PWD) | 1012 | if (cmdval == const_PWD) |