[Gpa-commits] r743 - trunk/src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 28 11:29:35 CET 2006


Author: marcus
Date: 2006-02-28 11:29:35 +0100 (Tue, 28 Feb 2006)
New Revision: 743

Modified:
   trunk/src/ChangeLog
   trunk/src/gpa.c
Log:
2006-02-28  Marcus Brinkmann  <marcus at g10code.de>

	* gpa.c (main): Create default config directory if it doesn't
	exist.


Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog	2006-02-23 16:57:01 UTC (rev 742)
+++ trunk/src/ChangeLog	2006-02-28 10:29:35 UTC (rev 743)
@@ -1,3 +1,8 @@
+2006-02-28  Marcus Brinkmann  <marcus at g10code.de>
+
+	* gpa.c (main): Create default config directory if it doesn't
+	exist.
+
 2006-02-14  Marcus Brinkmann  <marcus at g10code.de>
 
 	* gpgmetools.c (O_BINARY): Define if it isn't defined by system

Modified: trunk/src/gpa.c
===================================================================
--- trunk/src/gpa.c	2006-02-23 16:57:01 UTC (rev 742)
+++ trunk/src/gpa.c	2006-02-28 10:29:35 UTC (rev 743)
@@ -516,6 +516,11 @@
    */
   if (!args.options_filename)
     {
+      /* This is on the cheesy side.  GnuPG can not create a key if
+	 its home directory is missing.  We give it a bit of a jump
+	 start here.  */
+      if (!g_file_test (gnupg_homedir, G_FILE_TEST_IS_DIR))
+	mkdir (gnupg_homedir, 0700);
       configname = g_build_filename (gnupg_homedir, "gpa.conf", NULL);
     }
   else



More information about the Gpa-commits mailing list