aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tdbio.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/tdbio.c')
-rw-r--r--g10/tdbio.c3
1 files changed, 2 insertions, 1 deletions
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;