[openssh-commits] [openssh] 01/06: upstream commit
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Dec 5 09:31:28 EST 2014
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit db995f2eed5fc432598626fa3e30654503bf7151
Author: millert at openbsd.org <millert at openbsd.org>
Date: Wed Nov 26 18:34:51 2014 +0000
upstream commit
Prefer setvbuf() to setlinebuf() for portability; ok
deraadt@
---
sftp.c | 6 +++---
ssh-add.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/sftp.c b/sftp.c
index e86bb3b..98a146e 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp.c,v 1.167 2014/10/06 00:47:15 djm Exp $ */
+/* $OpenBSD: sftp.c,v 1.168 2014/11/26 18:34:51 millert Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm at openbsd.org>
*
@@ -2084,8 +2084,8 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2)
free(dir);
}
- setlinebuf(stdout);
- setlinebuf(infile);
+ setvbuf(stdout, NULL, _IOLBF, 0);
+ setvbuf(infile, NULL, _IOLBF, 0);
interactive = !batchmode && isatty(STDIN_FILENO);
err = 0;
diff --git a/ssh-add.c b/ssh-add.c
index 78a3359..ba11aa1 100644
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-add.c,v 1.113 2014/07/09 14:15:56 benno Exp $ */
+/* $OpenBSD: ssh-add.c,v 1.114 2014/11/26 18:34:51 millert Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -437,7 +437,7 @@ main(int argc, char **argv)
OpenSSL_add_all_algorithms();
- setlinebuf(stdout);
+ setvbuf(stdout, NULL, _IOLBF, 0);
/* At first, get a connection to the authentication agent. */
ac = ssh_get_authentication_connection();
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list