summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-09-09 04:44:39 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-09-09 04:44:39 +0000
commit59ca8d890132d0f76066650ec3dbab654cab211d (patch)
tree602784ac272b680f1fc93f0bbc10b4efe0f74962 /usr.bin
parentce6ff91a0ddee5fe98bd9b074466d234aaf52d48 (diff)
Add an fflush; from FreeBSD PR# bin/1589 (msmith@cain.atrad.adelaide.edu.au)
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ftp/cmds.c7
1 files changed, 5 insertions, 2 deletions
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);
}
/*