aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tdbio.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/tdbio.c')
-rw-r--r--g10/tdbio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/tdbio.c b/g10/tdbio.c
index 50064cf59..0c8f84246 100644
--- a/g10/tdbio.c
+++ b/g10/tdbio.c
@@ -444,6 +444,8 @@ tdbio_set_dbname( const char *new_dbname, int create )
: make_filename(opt.homedir,
"trustdb" EXTSEP_S "gpg", NULL );
+ check_permissions(fname,0);
+
if( access( fname, R_OK ) ) {
if( errno != ENOENT ) {
log_error( _("%s: can't access: %s\n"), fname, strerror(errno) );