diff options
author | 2001-01-20 21:33:42 +0000 | |
---|---|---|
committer | 2001-01-20 21:33:42 +0000 | |
commit | eed0bf7fd0505c2d1b19a32d81722cfb8fc98ec2 (patch) | |
tree | 68879d912a45870c15a666a1221d260da3270592 /usr.bin/ssh/ssh-add.c | |
parent | machine/alpha.h is only included in cpu.h and the name gives (diff) | |
download | wireguard-openbsd-eed0bf7fd0505c2d1b19a32d81722cfb8fc98ec2.tar.xz wireguard-openbsd-eed0bf7fd0505c2d1b19a32d81722cfb8fc98ec2.zip |
do not loop forever if askpass does not exist; from andrew@pimlott.ne.mediaone.net
Diffstat (limited to 'usr.bin/ssh/ssh-add.c')
-rw-r--r-- | usr.bin/ssh/ssh-add.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c index 5c47856ea13..b8a8aef2030 100644 --- a/usr.bin/ssh/ssh-add.c +++ b/usr.bin/ssh/ssh-add.c @@ -35,7 +35,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-add.c,v 1.25 2001/01/19 15:55:11 markus Exp $"); +RCSID("$OpenBSD: ssh-add.c,v 1.26 2001/01/20 21:33:42 markus Exp $"); #include <openssl/evp.h> #include <openssl/rsa.h> @@ -98,6 +98,8 @@ ssh_askpass(char *askpass, char *msg) int p[2], status; char buf[1024]; + if (fflush(stdout) != 0) + error("ssh_askpass: fflush: %s", strerror(errno)); if (askpass == NULL) fatal("internal error: askpass undefined"); if (pipe(p) < 0) |