summaryrefslogtreecommitdiffstats
path: root/ssh-add.c
diff options
context:
space:
mode:
authormillert@openbsd.org <millert@openbsd.org>2014-11-26 19:34:51 +0100
committerDamien Miller <djm@mindrot.org>2014-12-04 23:28:50 +0100
commitdb995f2eed5fc432598626fa3e30654503bf7151 (patch)
treed86efcd4ad4cc18a12d5eb1bd7ec04af9a48a345 /ssh-add.c
parentupstream commit (diff)
downloadopenssh-db995f2eed5fc432598626fa3e30654503bf7151.tar.xz
openssh-db995f2eed5fc432598626fa3e30654503bf7151.zip
upstream commit
Prefer setvbuf() to setlinebuf() for portability; ok deraadt@
Diffstat (limited to 'ssh-add.c')
-rw-r--r--ssh-add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-add.c b/ssh-add.c
index 78a3359ad..ba11aa150 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@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@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();