diff options
Diffstat (limited to 'usr.bin/ftp/cmds.c')
-rw-r--r-- | usr.bin/ftp/cmds.c | 7 |
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); } /* |