applying fix from:
authorpgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Tue, 19 Jul 2005 21:26:57 +0000 (21:26 +0000)
committerpgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277>
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.

git-svn-id: svn://busybox.net/trunk/busybox@10866 69ca8d6d-28ef-0310-b511-8ec308f3f277

networking/ftpgetput.c

index f6bd82b..02c21d9 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 {