[Pkg-gnupg-commit] [gnupg2] 26/241: gpg: Make failing to create a directory a soft error.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Dec 9 20:31:49 UTC 2015
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit eb8a0b051faa03584b3820200e10301936e82f51
Author: Neal H. Walfield <neal at g10code.com>
Date: Tue Oct 20 12:22:00 2015 +0200
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 at g10code.com>
---
g10/tofu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/g10/tofu.c b/g10/tofu.c
index a7f9e90..f97a3f7 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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list