summaryrefslogtreecommitdiff
path: root/sftp-int.c
diff options
context:
space:
mode:
authormouring <mouring>2001-05-09 00:38:19 +0000
committermouring <mouring>2001-05-09 00:38:19 +0000
commita51c9e7e5dbce5ea39d13040f03c629b83eb671f (patch)
tree09817ed5dba690102fdf34af907c8fbeef70d781 /sftp-int.c
parent3c18c4a9ac5f481fbbdeb56d18922ac9d47376ed (diff)
downloadopenssh-a51c9e7e5dbce5ea39d13040f03c629b83eb671f.tar.gz
- (bal) Updates from the Sony NEWS-OS platform by NAKAJI Hiroyuki
<nakaji@tutrp.tut.ac.jp>
Diffstat (limited to 'sftp-int.c')
-rw-r--r--sftp-int.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sftp-int.c b/sftp-int.c
index 46e405e0..03b22999 100644
--- a/sftp-int.c
+++ b/sftp-int.c
@@ -889,8 +889,13 @@ interactive_loop(int fd_in, int fd_out, char *file1, char *file2)
return;
}
}
+#if HAVE_SETVBUF
setvbuf(stdout, NULL, _IOLBF, 0);
setvbuf(infile, NULL, _IOLBF, 0);
+#else
+ setlinebuf(stdout);
+ setlinebuf(infile);
+#endif
for(;;) {
char *cp;