diff options
Diffstat (limited to 'g10/keydb.c')
-rw-r--r-- | g10/keydb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/keydb.c b/g10/keydb.c index 82962c7e3..a0c0e5747 100644 --- a/g10/keydb.c +++ b/g10/keydb.c @@ -205,12 +205,12 @@ keydb_add_resource (const char *url, int flags, int secret) const char *resname = url; char *filename = NULL; int force=(flags&1); - int readonly=!!(flags&8); + int read_only=!!(flags&8); int rc = 0; KeydbResourceType rt = KEYDB_RESOURCE_TYPE_NONE; void *token; - if (readonly) + if (read_only) force = 0; /* Do we have an URL? @@ -240,7 +240,7 @@ keydb_add_resource (const char *url, int flags, int secret) else filename = xstrdup (resname); - if (!force && !readonly) + if (!force && !read_only) force = secret? !any_secret : !any_public; /* see whether we can determine the filetype */ |