- (djm) Don't rely on atomicio's retval to determine length of askpass
supplied passphrase. Problem report from Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>
This commit is contained in:
parent
ef767acfb7
commit
2594de81d3
|
@ -1,6 +1,9 @@
|
||||||
20001017
|
20001017
|
||||||
- (djm) Add -lregex to cywin libs from Corinna Vinschen
|
- (djm) Add -lregex to cywin libs from Corinna Vinschen
|
||||||
<vinschen@cygnus.com>
|
<vinschen@cygnus.com>
|
||||||
|
- (djm) Don't rely on atomicio's retval to determine length of askpass
|
||||||
|
supplied passphrase. Problem report from Lutz Jaenicke
|
||||||
|
<Lutz.Jaenicke@aet.TU-Cottbus.DE>
|
||||||
|
|
||||||
20001016
|
20001016
|
||||||
- (djm) Sync with OpenBSD:
|
- (djm) Sync with OpenBSD:
|
||||||
|
|
|
@ -117,7 +117,9 @@ ssh_askpass(char *askpass, char *msg)
|
||||||
fatal("ssh_askpass: exec(%s): %s", askpass, strerror(errno));
|
fatal("ssh_askpass: exec(%s): %s", askpass, strerror(errno));
|
||||||
}
|
}
|
||||||
close(p[1]);
|
close(p[1]);
|
||||||
len = atomicio(read, p[0], buf, sizeof buf);
|
buf[0] = '\0';
|
||||||
|
atomicio(read, p[0], buf, sizeof buf);
|
||||||
|
len = strlen(buf);
|
||||||
close(p[0]);
|
close(p[0]);
|
||||||
while (waitpid(pid, &status, 0) < 0)
|
while (waitpid(pid, &status, 0) < 0)
|
||||||
if (errno != EINTR)
|
if (errno != EINTR)
|
||||||
|
|
Loading…
Reference in New Issue