aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2009-12-15 10:26:17 +0000
committerWerner Koch <[email protected]>2009-12-15 10:26:17 +0000
commite1fe8b04324e41ae48eb44384ad731b0ca897e7d (patch)
treedb0d5022433530056000c8aded7f0e15b3a979a8
parentImplement dynamic S2K count computation for GPGSM (diff)
downloadgnupg-e1fe8b04324e41ae48eb44384ad731b0ca897e7d.tar.gz
gnupg-e1fe8b04324e41ae48eb44384ad731b0ca897e7d.zip
Fix bug#1162
-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 ea6eb8b10..b848f2d0c 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-12-04 Werner Koch <[email protected]>
* keygen.c (DEFAULT_STD_ALGO, DEFAULT_STD_KEYSIZE): New.
diff --git a/g10/tdbio.c b/g10/tdbio.c
index c0dd5abf4..738f758ee 100644
--- a/g10/tdbio.c
+++ b/g10/tdbio.c
@@ -521,7 +521,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 = save_slash;