From e1fe8b04324e41ae48eb44384ad731b0ca897e7d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 15 Dec 2009 10:26:17 +0000 Subject: [PATCH] Fix bug#1162 --- g10/ChangeLog | 5 +++++ g10/tdbio.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * 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 * 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;