summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/sftp-int.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-06-27 22:31:32 +0000
committerdes <des@FreeBSD.org>2002-06-27 22:31:32 +0000
commitbb02848f18878bddada7a9f55b110116f63c2f3c (patch)
treed93e4bc5fc0a9a5e99878bd93a4d51c873c1a43e /crypto/openssh/sftp-int.c
parent610201f50fdb0594e9885594b69e4ee69c71dd08 (diff)
downloadFreeBSD-src-bb02848f18878bddada7a9f55b110116f63c2f3c.zip
FreeBSD-src-bb02848f18878bddada7a9f55b110116f63c2f3c.tar.gz
Vendor import of OpenSSH 3.3p1.
Diffstat (limited to 'crypto/openssh/sftp-int.c')
-rw-r--r--crypto/openssh/sftp-int.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/openssh/sftp-int.c b/crypto/openssh/sftp-int.c
index d433141..5b1d384 100644
--- a/crypto/openssh/sftp-int.c
+++ b/crypto/openssh/sftp-int.c
@@ -28,8 +28,6 @@
#include "includes.h"
RCSID("$OpenBSD: sftp-int.c,v 1.46 2002/03/30 18:51:15 markus Exp $");
-#include <glob.h>
-
#include "buffer.h"
#include "xmalloc.h"
#include "log.h"
@@ -894,8 +892,13 @@ interactive_loop(int fd_in, int fd_out, char *file1, char *file2)
}
xfree(dir);
}
+#if HAVE_SETVBUF
setvbuf(stdout, NULL, _IOLBF, 0);
setvbuf(infile, NULL, _IOLBF, 0);
+#else
+ setlinebuf(stdout);
+ setlinebuf(infile);
+#endif
for (;;) {
char *cp;
OpenPOWER on IntegriCloud