From 227d6626b0ba28cf5eec80c8c7d49d98903b230a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 5 Jun 2009 20:51:52 +0000 Subject: [PATCH] Fix last change --- agent/ChangeLog | 7 ++++++- agent/protect-tool.c | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/agent/ChangeLog b/agent/ChangeLog index 4cbe8d927..8596a2bec 100644 --- a/agent/ChangeLog +++ b/agent/ChangeLog @@ -1,10 +1,15 @@ +2009-06-05 Werner Koch + + * protect-tool.c (store_private_key): Fix last change by appending + a ".key". + 2009-06-03 Werner Koch * protect-tool.c: Include estream.h. (store_private_key): Replace stdio streams by estream functions for a portable use of the "x" mode. * trustlist.c: Include estream.h. - (agent_marktrusted): Repalce stdio stream by estream functions. + (agent_marktrusted): Replace stdio stream by estream functions. * protect-tool.c (store_private_key): Use bin2hex. diff --git a/agent/protect-tool.c b/agent/protect-tool.c index 58bda715a..0e48124d8 100644 --- a/agent/protect-tool.c +++ b/agent/protect-tool.c @@ -1205,6 +1205,7 @@ store_private_key (const unsigned char *grip, char hexgrip[40+4+1]; bin2hex (grip, 20, hexgrip); + strcpy (hexgrip+40, ".key"); fname = make_filename (opt_homedir, GNUPG_PRIVATE_KEYS_DIR, hexgrip, NULL); if (force)