ssh-add broken for latest snapshots
Lutz Jaenicke
Lutz.Jaenicke at aet.TU-Cottbus.DE
Tue Oct 17 19:39:32 EST 2000
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!
Reason: Between 2.2.0p1 (ssh-add.c 1.20) and now (ssh-add 1.22) the input
reading from ssh-askpass was changed from read() to atomicio().
91c120
< len = read(p[0], buf, sizeof buf);
---
> len = atomicio(read, p[0], buf, sizeof buf);
After having entered the passphrase, atomicio will first read the correct
number of characters (like read()), but then will try to read another hunk,
which is not there anymore, because anything has been read. read() will hence
return "0", so that atomicio will also return "0", even though "buf"
contains the correct passphrase...
Best regards,
Lutz
--
Lutz Jaenicke Lutz.Jaenicke at aet.TU-Cottbus.DE
BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153
More information about the openssh-unix-dev
mailing list