summaryrefslogtreecommitdiff
path: root/package/busybox/busybox-1.14.1-ftpd.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-06-06 21:53:15 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2009-06-06 21:53:15 +0200
commit82182c3e270441d7650ae5c3888adc8d734519c8 (patch)
tree73a0cd2db98852f5b198f0a0e8f2745bd50e634a /package/busybox/busybox-1.14.1-ftpd.patch
parentf6fa84f5ff5e4c33f6f9b50a950fa265bd4c3669 (diff)
busybox: 1.14.1 ftpd + modprobe patches
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/busybox-1.14.1-ftpd.patch')
-rw-r--r--package/busybox/busybox-1.14.1-ftpd.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.14.1-ftpd.patch b/package/busybox/busybox-1.14.1-ftpd.patch
new file mode 100644
index 000000000..d33977ff6
--- /dev/null
+++ b/package/busybox/busybox-1.14.1-ftpd.patch
@@ -0,0 +1,22 @@
+diff -urpN busybox-1.14.1/networking/ftpd.c busybox-1.14.1-ftpd/networking/ftpd.c
+--- busybox-1.14.1/networking/ftpd.c 2009-05-27 18:00:23.000000000 +0200
++++ busybox-1.14.1-ftpd/networking/ftpd.c 2009-06-04 18:59:49.000000000 +0200
+@@ -1320,6 +1320,8 @@ int ftpd_main(int argc UNUSED_PARAM, cha
+ 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, cha
+ * (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");
+ }
+ }