ssh-add broken for latest snapshots
Damien Miller
djm at mindrot.org
Tue Oct 17 23:12:04 EST 2000
On Tue, 17 Oct 2000, Lutz Jaenicke wrote:
> Hi!
>
> I had some fight with ssh-add this morning that I have now tracked
> down to a change recently made. I run "ssh-add < /dev/null" to
> launch (x11-)ssh-askpass from the CDE startup. Unfortunately, no
> keys are added to ssh-agent!
Thanks again. Does this help:
diff -u -r1.25 ssh-add.c
--- ssh-add.c 2000/09/30 10:36:54 1.25
+++ ssh-add.c 2000/10/17 12:11:17
@@ -117,7 +117,9 @@
fatal("ssh_askpass: exec(%s): %s", askpass, strerror(errno));
}
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]);
while (waitpid(pid, &status, 0) < 0)
if (errno != EINTR)
-d
--
| ``We've all heard that a million monkeys banging on | Damien Miller -
| a million typewriters will eventually reproduce the | <djm at mindrot.org>
| works of Shakespeare. Now, thanks to the Internet, /
| we know this is not true.'' - Robert Wilensky UCB / http://www.mindrot.org
More information about the openssh-unix-dev
mailing list