diff options
author | Werner Koch <[email protected]> | 2009-12-15 10:20:10 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-12-15 10:20:10 +0000 |
commit | 03c414b65054358822ffca5f2d807cf04d2febfc (patch) | |
tree | d14d3de2c344aecd330766aeaaa6385f920c55c4 | |
parent | Remove sparc64 asm modules (diff) | |
download | gnupg-03c414b65054358822ffca5f2d807cf04d2febfc.tar.gz gnupg-03c414b65054358822ffca5f2d807cf04d2febfc.zip |
fix bug#1162.
-rw-r--r-- | g10/ChangeLog | 5 | ||||
-rw-r--r-- | g10/tdbio.c | 3 |
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; |