aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--g10/ChangeLog5
-rw-r--r--g10/tdbio.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 88227e37a..7bbe53601 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-15 Werner Koch <[email protected]>
+
+ * tdbio.c (tdbio_set_dbname): Do not call log_fatal after creating
+ the directory. Fixes bug#1169. Reported by Daniel Leidert.
+
2009-09-28 Werner Koch <[email protected]>
* trustdb.c (get_validity_info): Take care of a NULL PK. Fixes
diff --git a/g10/tdbio.c b/g10/tdbio.c
index 606194f53..282411e5d 100644
--- a/g10/tdbio.c
+++ b/g10/tdbio.c
@@ -508,7 +508,8 @@ tdbio_set_dbname( const char *new_dbname, int create )
*p = 0;
if( access( fname, F_OK ) ) {
try_make_homedir( fname );
- log_fatal( _("%s: directory does not exist!\n"), fname );
+ if (access (fname, F_OK ))
+ log_fatal (_("%s: directory does not exist!\n"), fname);
}
*p = DIRSEP_C;