summaryrefslogtreecommitdiff
path: root/ssh-add.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-09-30 21:36:54 +1100
committerDamien Miller <djm@mindrot.org>2000-09-30 21:36:54 +1100
commit87f43ff889dba4377ea7f9052884b17e334089a2 (patch)
tree91f3a18f55c79f5f0b67b2315c58fc9b14797e5b /ssh-add.c
parentf5a81473a9b9fbe90353eb72c49fb9fd2529c54a (diff)
Forgot to commit changelog from loginrec changes
- (djm) Fix 9 character passphrase failure with gnome-ssh-askpass. Problem was caused by interrupted read in ssh-add. Report from Donald J. Barry <don@astro.cornell.edu>
Diffstat (limited to 'ssh-add.c')
-rw-r--r--ssh-add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh-add.c b/ssh-add.c
index 06884d67..efbf771d 100644
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -117,7 +117,7 @@ ssh_askpass(char *askpass, char *msg)
fatal("ssh_askpass: exec(%s): %s", askpass, strerror(errno));
}
close(p[1]);
- len = read(p[0], buf, sizeof buf);
+ len = atomicio(read, p[0], buf, sizeof buf);
close(p[0]);
while (waitpid(pid, &status, 0) < 0)
if (errno != EINTR)