summaryrefslogtreecommitdiff
path: root/ssh-add.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-05-02 22:40:12 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-05-02 22:40:12 +0000
commit8a1371347bf6843f9873fbcd624254c29a0026c1 (patch)
tree0ffba493d139082747d0b391fe100070f326b20e /ssh-add.c
parent6d849315ff76bccb6cb89a2151c4068a4e5361b3 (diff)
downloadopenssh-git-8a1371347bf6843f9873fbcd624254c29a0026c1.tar.gz
- markus@cvs.openbsd.org 2001/05/02 16:41:20
[ssh-add.c] fix prompt for ssh-add.
Diffstat (limited to 'ssh-add.c')
-rw-r--r--ssh-add.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh-add.c b/ssh-add.c
index 323e73ec..5f1182ec 100644
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -35,7 +35,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-add.c,v 1.36 2001/04/18 21:57:42 markus Exp $");
+RCSID("$OpenBSD: ssh-add.c,v 1.37 2001/05/02 16:41:20 markus Exp $");
#include <openssl/evp.h>
@@ -126,7 +126,7 @@ add_file(AuthenticationConnection *ac, const char *filename)
/* clear passphrase since it did not work */
clear_pass();
printf("Need passphrase for %.200s\n", filename);
- snprintf(msg, sizeof msg, "Enter passphrase for %.200s ",
+ snprintf(msg, sizeof msg, "Enter passphrase for %.200s: ",
comment);
for (;;) {
pass = read_passphrase(msg, 1);
@@ -139,7 +139,7 @@ add_file(AuthenticationConnection *ac, const char *filename)
if (private != NULL)
break;
clear_pass();
- strlcpy(msg, "Bad passphrase, try again ", sizeof msg);
+ strlcpy(msg, "Bad passphrase, try again: ", sizeof msg);
}
}
if (ssh_add_identity(ac, private, comment))