Date: Mon, 9 Sep 1996 11:59:13 +0930 From: Michael Smith <msmith@cain.atrad.adelaide.edu.au> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/1589: ftp fails to flush output Message-ID: <199609090229.LAA11012@cain.atrad.adelaide.edu.au> Resent-Message-ID: <199609090240.TAA18301@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 1589 >Category: bin >Synopsis: ftp fails to flush output >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 8 19:40:03 PDT 1996 >Last-Modified: >Originator: Michael Smith >Organization: Genesis Software >Release: FreeBSD 2.1-STABLE i386 >Environment: Using /usr/bin/ftp as a slave process on the end of a pipe. >Description: The 'ftp' program fails to flush its output after each command, meaning that a driving program may not receive the results of a command until more output is produced. >How-To-Repeat: ...should be inferrable from context. >Fix: (warning, X snarf-barf will have smashed tabs) --- /usr/src/usr.bin/ftp/cmds.c Sat Aug 26 18:33:43 1995 +++ cmds.c Wed Jun 5 12:55:26 1996 @@ -1198,6 +1198,7 @@ return; } recvrequest(cmd, argv[2], argv[1], "w", 0); + fflush(stdout); /* flush results in case commands are coming from a pipe */ } /* >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609090229.LAA11012>