Changes the output of ftpd to be slightly more verbose and to match that of another ftp server whose output is parsed properly by urllib and possibly other tools. -- Michael T. Babcock < http://mikebabcock.ca/code > diff -ur publicfile-0.52/ftpd.c publicfile-0.52-mtb1/ftpd.c --- publicfile-0.52/ftpd.c 1999-11-09 02:23:46.000000000 -0500 +++ publicfile-0.52-mtb1/ftpd.c 2006-09-21 09:37:55.000000000 -0400 @@ -142,7 +142,11 @@ startlistening(x); +#ifdef DJB out_puts("227 ="); +#else + out_puts("227 Entering Passive Mode ("); +#endif out_put(strnum,fmt_ulong(strnum,(unsigned long) x[0])); out_puts(","); out_put(strnum,fmt_ulong(strnum,(unsigned long) x[1])); @@ -154,6 +158,9 @@ out_put(strnum,fmt_ulong(strnum,(unsigned long) x[4])); out_puts(","); out_put(strnum,fmt_ulong(strnum,(unsigned long) x[5])); +#ifndef DJB + out_puts(")"); +#endif out_puts("\r\n"); }