diff options
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp.c,v 1.167 2014/10/06 00:47:15 djm Exp $ */ | 1 | /* $OpenBSD: sftp.c,v 1.168 2014/11/26 18:34:51 millert Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> | 3 | * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> |
4 | * | 4 | * |
@@ -2084,8 +2084,8 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2) | |||
2084 | free(dir); | 2084 | free(dir); |
2085 | } | 2085 | } |
2086 | 2086 | ||
2087 | setlinebuf(stdout); | 2087 | setvbuf(stdout, NULL, _IOLBF, 0); |
2088 | setlinebuf(infile); | 2088 | setvbuf(infile, NULL, _IOLBF, 0); |
2089 | 2089 | ||
2090 | interactive = !batchmode && isatty(STDIN_FILENO); | 2090 | interactive = !batchmode && isatty(STDIN_FILENO); |
2091 | err = 0; | 2091 | err = 0; |