From: downsj Date: Mon, 9 Sep 1996 04:44:38 +0000 (+0000) Subject: Add an fflush; from FreeBSD PR# bin/1589 (msmith@cain.atrad.adelaide.edu.au) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=76b0d663c5049afe87e65655ca32430d090aff10;p=openbsd Add an fflush; from FreeBSD PR# bin/1589 (msmith@cain.atrad.adelaide.edu.au) --- diff --git a/usr.bin/ftp/cmds.c b/usr.bin/ftp/cmds.c index cc850ad60c0..83d7511b8e4 100644 --- a/usr.bin/ftp/cmds.c +++ b/usr.bin/ftp/cmds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmds.c,v 1.2 1996/06/26 05:33:33 deraadt Exp $ */ +/* $OpenBSD: cmds.c,v 1.3 1996/09/09 04:44:38 downsj Exp $ */ /* $NetBSD: cmds.c,v 1.8 1995/09/08 01:06:05 tls Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94"; #else -static char rcsid[] = "$OpenBSD: cmds.c,v 1.2 1996/06/26 05:33:33 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: cmds.c,v 1.3 1996/09/09 04:44:38 downsj Exp $"; #endif #endif /* not lint */ @@ -1206,6 +1206,9 @@ ls(argc, argv) return; } recvrequest(cmd, argv[2], argv[1], "w", 0); + + /* flush results in case commands are coming from a pipe */ + fflush(stdout); } /*