On Sun, May 31, 2009 at 2:36 PM, Stefan Seyfried <[email protected]> wrote: > When ftpd is started with "-w", it does no longer recognize unknown > commands - which, in turn, confuses e.g. ncftpput. > (Patch additionally attached in case thunderbird messes it up) > > diff -rup busybox-1.14.1/networking/ftpd.c > busybox-1.14.1-fixed/networking//ftpd.c > --- busybox-1.14.1/networking/ftpd.c 2009-05-27 18:00:23.000000000 +0200 > +++ busybox-1.14.1-fixed/networking//ftpd.c 2009-05-31 14:26:13.713676864 > +0200 > @@ -1320,8 +1320,10 @@ int ftpd_main(int argc UNUSED_PARAM, cha > handle_appe(); > else if (cmdval == const_STOU) /* "store unique" */ > handle_stou(); > + else > + cmdio_write_raw(STR(FTP_BADCMD)" Unknown > command\r\n"); > } > -#endif > +#else > #if 0 > else if (cmdval == const_STOR > || cmdval == const_MKD > @@ -1342,5 +1344,6 @@ int ftpd_main(int argc UNUSED_PARAM, cha > */ > cmdio_write_raw(STR(FTP_BADCMD)" Unknown command\r\n"); > } > +#endif > } > }
Applied, thanks! -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
