diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | sftp.c | 7 |
2 files changed, 4 insertions, 6 deletions
@@ -40,6 +40,9 @@ | |||
40 | - djm@cvs.openbsd.org 2012/04/12 02:43:55 | 40 | - djm@cvs.openbsd.org 2012/04/12 02:43:55 |
41 | [sshd_config sshd_config.5] | 41 | [sshd_config sshd_config.5] |
42 | mention AuthorizedPrincipalsFile=none default | 42 | mention AuthorizedPrincipalsFile=none default |
43 | - djm@cvs.openbsd.org 2012/04/20 03:24:23 | ||
44 | [sftp.c] | ||
45 | setlinebuf(3) is more readable than setvbuf(.., _IOLBF, ...) | ||
43 | 46 | ||
44 | 20120420 | 47 | 20120420 |
45 | - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec] | 48 | - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec] |
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp.c,v 1.134 2011/11/16 12:24:28 oga Exp $ */ | 1 | /* $OpenBSD: sftp.c,v 1.135 2012/04/20 03:24:23 djm 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 | * |
@@ -1934,13 +1934,8 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2) | |||
1934 | xfree(dir); | 1934 | xfree(dir); |
1935 | } | 1935 | } |
1936 | 1936 | ||
1937 | #if defined(HAVE_SETVBUF) && !defined(BROKEN_SETVBUF) | ||
1938 | setvbuf(stdout, NULL, _IOLBF, 0); | ||
1939 | setvbuf(infile, NULL, _IOLBF, 0); | ||
1940 | #else | ||
1941 | setlinebuf(stdout); | 1937 | setlinebuf(stdout); |
1942 | setlinebuf(infile); | 1938 | setlinebuf(infile); |
1943 | #endif | ||
1944 | 1939 | ||
1945 | interactive = !batchmode && isatty(STDIN_FILENO); | 1940 | interactive = !batchmode && isatty(STDIN_FILENO); |
1946 | err = 0; | 1941 | err = 0; |