Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ftp print the "xxx bare linefeeds" message after the...



details:   https://anonhg.NetBSD.org/src/rev/77a487e29cb4
branches:  trunk
changeset: 472665:77a487e29cb4
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue May 04 14:12:37 1999 +0000

description:
print the "xxx bare linefeeds" message after the progressmeter. noted by dan@

diffstat:

 usr.bin/ftp/ftp.c |  17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diffs (45 lines):

diff -r 3c4d717840ca -r 77a487e29cb4 usr.bin/ftp/ftp.c
--- a/usr.bin/ftp/ftp.c Tue May 04 13:57:19 1999 +0000
+++ b/usr.bin/ftp/ftp.c Tue May 04 14:12:37 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftp.c,v 1.42 1999/04/28 13:35:40 lukem Exp $   */
+/*     $NetBSD: ftp.c,v 1.43 1999/05/04 14:12:37 lukem Exp $   */
 
 /*
  * Copyright (c) 1985, 1989, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)ftp.c      8.6 (Berkeley) 10/27/94";
 #else
-__RCSID("$NetBSD: ftp.c,v 1.42 1999/04/28 13:35:40 lukem Exp $");
+__RCSID("$NetBSD: ftp.c,v 1.43 1999/05/04 14:12:37 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -992,13 +992,6 @@
        contin2:        ;
                }
 break2:
-               if (bare_lfs) {
-                       fprintf(ttyout,
-                       "WARNING! %d bare linefeeds received in ASCII mode.\n",
-                           bare_lfs);
-                       fputs("File may not have transferred correctly.\n",
-                           ttyout);
-               }
                if (hash && (!progress || filesize < 0)) {
                        if (bytes < hashbytes)
                                (void)putc('#', ttyout);
@@ -1022,6 +1015,12 @@
                (void)signal(SIGPIPE, oldintp);
        (void)fclose(din);
        (void)getreply(0);
+       if (bare_lfs) {
+               fprintf(ttyout,
+                   "WARNING! %d bare linefeeds received in ASCII mode.\n",
+                   bare_lfs);
+               fputs("File may not have transferred correctly.\n", ttyout);
+       }
        if (bytes >= 0 && is_retr) {
                if (bytes > 0)
                        ptransfer(0);



Home | Main Index | Thread Index | Old Index