diff options
author | Neal H. Walfield <[email protected]> | 2015-10-20 10:22:00 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2015-10-20 11:15:19 +0000 |
commit | eb8a0b051faa03584b3820200e10301936e82f51 (patch) | |
tree | 74083cab90137971b06c63dac28a4c30201e8bb8 | |
parent | common: Make sure tilde expansion works for the mkdir functions. (diff) | |
download | gnupg-eb8a0b051faa03584b3820200e10301936e82f51.tar.gz gnupg-eb8a0b051faa03584b3820200e10301936e82f51.zip |
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 <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | g10/tofu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/tofu.c b/g10/tofu.c index a7f9e9096..f97a3f781 100644 --- a/g10/tofu.c +++ b/g10/tofu.c @@ -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"), opt.homedir, "tofu.d", type_str, prefix); - g10_exit (1); + goto out; } name_db = xstrconcat (name_sanitized, ".db", NULL); |