aboutsummaryrefslogtreecommitdiff
path: root/networking/ftpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ftpd.c')
-rw-r--r--networking/ftpd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c
index ac6896117..e85e4f8ea 100644
--- a/networking/ftpd.c
+++ b/networking/ftpd.c
@@ -1320,6 +1320,8 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv)
1320 handle_appe(); 1320 handle_appe();
1321 else if (cmdval == const_STOU) /* "store unique" */ 1321 else if (cmdval == const_STOU) /* "store unique" */
1322 handle_stou(); 1322 handle_stou();
1323 else
1324 goto bad_cmd;
1323 } 1325 }
1324#endif 1326#endif
1325#if 0 1327#if 0
@@ -1340,6 +1342,9 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv)
1340 * (doesn't necessarily mean "we must support them") 1342 * (doesn't necessarily mean "we must support them")
1341 * foo 1.2.3: XXXX - comment 1343 * foo 1.2.3: XXXX - comment
1342 */ 1344 */
1345#if ENABLE_FEATURE_FTP_WRITE
1346 bad_cmd:
1347#endif
1343 cmdio_write_raw(STR(FTP_BADCMD)" Unknown command\r\n"); 1348 cmdio_write_raw(STR(FTP_BADCMD)" Unknown command\r\n");
1344 } 1349 }
1345 } 1350 }