applying fix from:
authorPaul Fox <pgf@brightstareng.com>
Tue, 19 Jul 2005 21:26:57 +0000 (21:26 -0000)
committerPaul Fox <pgf@brightstareng.com>
Tue, 19 Jul 2005 21:26:57 +0000 (21:26 -0000)
    0000108: busyboxy/networking/ftpgetput.c not conforming to
                    RFC 959.  ftpget and ftpput send <LF> as EOL.

networking/ftpgetput.c

index f6bd82bc85ea68e38742c40e394a977993045efb..02c21d9e11e6717b3b8851bd030900a9e152af1b 100644 (file)
@@ -65,9 +65,9 @@ static int ftpcmd(const char *s1, const char *s2, FILE *stream, char *buf)
 
        if (s1) {
                if (s2) {
-                       fprintf(stream, "%s%s\n", s1, s2);
+                       fprintf(stream, "%s%s\r\n", s1, s2);
                } else {
-                       fprintf(stream, "%s\n", s1);
+                       fprintf(stream, "%s\r\n", s1);
                }
        }
        do {