diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-04 19:03:20 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-04 19:03:20 +0200 |
commit | 8507e1f10927bc6498cf38eb8324a53bde8e0a61 (patch) | |
tree | a967637c2a42725a8d04ea8fac1f8564970515c7 | |
parent | a43972cb0f4119d6da9297ecea9fcdc9ac74c4d2 (diff) |
ftpd: fix a case when with -w unknown commands are ignored with no error code
Signed-off-by: Stefan Seyfried <seife@suse.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/ftpd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c index 2ec67df35..090ed54eb 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c @@ -1320,6 +1320,8 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv) handle_appe(); else if (cmdval == const_STOU) /* "store unique" */ handle_stou(); + else + goto bad_cmd; } #endif #if 0 @@ -1340,6 +1342,9 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv) * (doesn't necessarily mean "we must support them") * foo 1.2.3: XXXX - comment */ +#if ENABLE_FEATURE_FTP_WRITE + bad_cmd: +#endif cmdio_write_raw(STR(FTP_BADCMD)" Unknown command\r\n"); } } |