[svn] GnuPG - r5038 - trunk/agent

svn author wk cvs at cvs.gnupg.org
Fri Jun 5 22:51:53 CEST 2009


Author: wk
Date: 2009-06-05 22:51:52 +0200 (Fri, 05 Jun 2009)
New Revision: 5038

Modified:
   trunk/agent/ChangeLog
   trunk/agent/protect-tool.c
Log:
Fix last change


Modified: trunk/agent/ChangeLog
===================================================================
--- trunk/agent/ChangeLog	2009-06-05 16:54:47 UTC (rev 5037)
+++ trunk/agent/ChangeLog	2009-06-05 20:51:52 UTC (rev 5038)
@@ -1,3 +1,8 @@
+2009-06-05  Werner Koch  <wk at g10code.com>
+
+	* protect-tool.c (store_private_key): Fix last change by appending
+	a ".key".
+
 2009-06-03  Werner Koch  <wk at g10code.com>
 
 	* protect-tool.c: Include estream.h.
@@ -4,7 +9,7 @@
 	(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.	
 

Modified: trunk/agent/protect-tool.c
===================================================================
--- trunk/agent/protect-tool.c	2009-06-05 16:54:47 UTC (rev 5037)
+++ trunk/agent/protect-tool.c	2009-06-05 20:51:52 UTC (rev 5038)
@@ -1205,6 +1205,7 @@
   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)




More information about the Gnupg-commits mailing list