From owner-freebsd-bugs Sun Sep 8 19:40:11 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA18349 for bugs-outgoing; Sun, 8 Sep 1996 19:40:11 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA18301; Sun, 8 Sep 1996 19:40:06 -0700 (PDT) Resent-Date: Sun, 8 Sep 1996 19:40:06 -0700 (PDT) Resent-Message-Id: <199609090240.TAA18301@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, msmith@cain.atrad.adelaide.edu.au Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA17343 for ; Sun, 8 Sep 1996 19:33:27 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id TAA03550 for ; Sun, 8 Sep 1996 19:30:41 -0700 (PDT) Received: from cain.atrad.adelaide.edu.au [203.20.121.17] by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) with ESMTP id LAA26575 for ; Mon, 9 Sep 1996 11:59:15 +0930 Received: (from msmith@localhost) by cain.atrad.adelaide.edu.au (8.6.12/8.6.9) id LAA11012; Mon, 9 Sep 1996 11:59:13 +0930 Message-Id: <199609090229.LAA11012@cain.atrad.adelaide.edu.au> Date: Mon, 9 Sep 1996 11:59:13 +0930 From: Michael Smith Reply-To: msmith@cain.atrad.adelaide.edu.au To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1589: ftp fails to flush output Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: