From d733c91bf3e66c4b14228b3dc20ed448a3bc6d7c Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 22 Nov 1999 18:11:23 +1100 Subject: Only display comment for ssh-askpass --- ChangeLog | 2 ++ ssh-add.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0f069dfd1..04561846e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,8 @@ - Retry /dev/urandom reads interrupted by signal (report from Robert Hardy ) - Added a setenv replacement for systems which lack it + - Only display public key comment when presenting ssh-askpass dialog + - Released 1.2pre14 19991121 - OpenBSD CVS Changes: diff --git a/ssh-add.c b/ssh-add.c index cdd5ca1d0..ba8a964b0 100644 --- a/ssh-add.c +++ b/ssh-add.c @@ -14,7 +14,7 @@ Adds an identity to the authentication server, or removes an identity. */ #include "includes.h" -RCSID("$Id: ssh-add.c,v 1.10 1999/11/17 06:29:08 damien Exp $"); +RCSID("$Id: ssh-add.c,v 1.11 1999/11/22 07:11:23 damien Exp $"); #include "rsa.h" #include "ssh.h" @@ -282,7 +282,7 @@ int askpass(const char *filename, RSA *key, const char *saved_comment, char **co exit(1); } - tmp = snprintf(buf, sizeof(buf), "Need passphrase for %s (%s)", filename, saved_comment); + tmp = snprintf(buf, sizeof(buf), "Need passphrase for %s", saved_comment); /* skip the prompt if it won't fit */ if ((tmp < 0) || (tmp >= sizeof(buf))) tmp = execlp(ASKPASS_PROGRAM, "ssh-askpass", 0); -- cgit v1.2.3