summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--ssh-add.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6050b1252..2070718cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
120001017 120001017
2 - (djm) Add -lregex to cywin libs from Corinna Vinschen 2 - (djm) Add -lregex to cywin libs from Corinna Vinschen
3 <vinschen@cygnus.com> 3 <vinschen@cygnus.com>
4 - (djm) Don't rely on atomicio's retval to determine length of askpass
5 supplied passphrase. Problem report from Lutz Jaenicke
6 <Lutz.Jaenicke@aet.TU-Cottbus.DE>
4 7
520001016 820001016
6 - (djm) Sync with OpenBSD: 9 - (djm) Sync with OpenBSD:
diff --git a/ssh-add.c b/ssh-add.c
index efbf771d3..3adc2509f 100644
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -117,7 +117,9 @@ ssh_askpass(char *askpass, char *msg)
117 fatal("ssh_askpass: exec(%s): %s", askpass, strerror(errno)); 117 fatal("ssh_askpass: exec(%s): %s", askpass, strerror(errno));
118 } 118 }
119 close(p[1]); 119 close(p[1]);
120 len = atomicio(read, p[0], buf, sizeof buf); 120 buf[0] = '\0';
121 atomicio(read, p[0], buf, sizeof buf);
122 len = strlen(buf);
121 close(p[0]); 123 close(p[0]);
122 while (waitpid(pid, &status, 0) < 0) 124 while (waitpid(pid, &status, 0) < 0)
123 if (errno != EINTR) 125 if (errno != EINTR)