1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-09-21 15:01:41 +02:00

gpg: Make failing to create a directory a soft error.

* g10/tofu.c (getdb): Don't exit if we can't create the directory.
Just return an error.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
Neal H. Walfield 2015-10-20 12:22:00 +02:00
parent c3bb9fccb7
commit eb8a0b051f

View File

@ -574,7 +574,7 @@ getdb (struct db *dbs, const char *name, enum db_type type)
{ {
log_error (_("unable to create directory %s/%s/%s/%s"), log_error (_("unable to create directory %s/%s/%s/%s"),
opt.homedir, "tofu.d", type_str, prefix); opt.homedir, "tofu.d", type_str, prefix);
g10_exit (1); goto out;
} }
name_db = xstrconcat (name_sanitized, ".db", NULL); name_db = xstrconcat (name_sanitized, ".db", NULL);