> From: Antoine Jacoutot <[email protected]>
> Date: Wed, Jan 29, 2014 at 3:24 PM
> Subject: Re: unbreak ftp progressbar
> To: Jasper Lievisse Adriaanse <[email protected]>
> Cc: [email protected]
>
>
> On Wed, Jan 29, 2014 at 02:53:12PM +0100, Jasper Lievisse Adriaanse wrote:
> > Hi,
> >
> > At least with ftp -Vm the progressbar was messing up the display as it was
> > printing the output on the same line and would wrap around creating displays
> > such as http://pbot.rmdir.de/gOeAYNv30HnQk-4I4xmKZg
> > Seems like typo from the introduction of the -D flag.
> >
> > OK?
>
> There is already the same diff by David in bugs@
That diff was wrong.
What about this?
Index: util.c
===================================================================
RCS file: /cvs/src/usr.bin/ftp/util.c,v
retrieving revision 1.65
diff -u -p -u -p -r1.65 util.c
--- util.c 23 Jan 2014 00:39:15 -0000 1.65
+++ util.c 29 Jan 2014 14:28:41 -0000
@@ -811,7 +811,7 @@ progressmeter(int flag, const char *file
dotdot);
overhead += l + 1;
} else
- snprintf(buf, sizeof(buf), "");
+ snprintf(buf, sizeof(buf), "\r");
if (!verbose && title != NULL) {
int l = strlen(title);