- djm@cvs.openbsd.org 2012/04/20 03:24:23
[sftp.c] setlinebuf(3) is more readable than setvbuf(.., _IOLBF, ...)
This commit is contained in:
parent
8fef9ebbab
commit
4922315d1d
|
@ -40,6 +40,9 @@
|
|||
- djm@cvs.openbsd.org 2012/04/12 02:43:55
|
||||
[sshd_config sshd_config.5]
|
||||
mention AuthorizedPrincipalsFile=none default
|
||||
- djm@cvs.openbsd.org 2012/04/20 03:24:23
|
||||
[sftp.c]
|
||||
setlinebuf(3) is more readable than setvbuf(.., _IOLBF, ...)
|
||||
|
||||
20120420
|
||||
- (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
|
||||
|
|
7
sftp.c
7
sftp.c
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: sftp.c,v 1.134 2011/11/16 12:24:28 oga Exp $ */
|
||||
/* $OpenBSD: sftp.c,v 1.135 2012/04/20 03:24:23 djm Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
|
||||
*
|
||||
|
@ -1934,13 +1934,8 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2)
|
|||
xfree(dir);
|
||||
}
|
||||
|
||||
#if defined(HAVE_SETVBUF) && !defined(BROKEN_SETVBUF)
|
||||
setvbuf(stdout, NULL, _IOLBF, 0);
|
||||
setvbuf(infile, NULL, _IOLBF, 0);
|
||||
#else
|
||||
setlinebuf(stdout);
|
||||
setlinebuf(infile);
|
||||
#endif
|
||||
|
||||
interactive = !batchmode && isatty(STDIN_FILENO);
|
||||
err = 0;
|
||||
|
|
Loading…
Reference in New Issue