diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2003-06-16 10:22:46 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2003-06-16 10:22:46 +0000 |
commit | 1a3e7694dd59ae19b99402a34be6bafce5d9153b (patch) | |
tree | 4d64d62a3cb0232ccfc47a44f3864063a20cd8ff | |
parent | ead3e2ade4353eebcbd96cb172091291791b25e1 (diff) |
print out key comment on each prompt; make ssh-askpass more useable; ok djm@
-rw-r--r-- | usr.bin/ssh/ssh-add.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c index 7e4f1156614..cd3ef906e58 100644 --- a/usr.bin/ssh/ssh-add.c +++ b/usr.bin/ssh/ssh-add.c @@ -35,7 +35,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-add.c,v 1.67 2003/06/11 11:18:38 djm Exp $"); +RCSID("$OpenBSD: ssh-add.c,v 1.68 2003/06/16 10:22:45 markus Exp $"); #include <openssl/evp.h> @@ -158,7 +158,8 @@ add_file(AuthenticationConnection *ac, const char *filename) if (private != NULL) break; clear_pass(); - strlcpy(msg, "Bad passphrase, try again: ", sizeof msg); + snprintf(msg, sizeof msg, + "Bad passphrase, try again for %.200s: ", comment); } } |