Home GnuPG
Diffusion GnuPG d957e4388f72

g10: Make sure to have the directory for trustdb.
d957e4388f72Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

g10: Make sure to have the directory for trustdb.

* g10/tdbio.c (tdbio_set_dbname): Return earlier if !CREATE.  Check
the directory and create it if none before calling take_write_lock.

Thanks to Marc Deslauriers for the bug report and his patch.

(backport from master
commit 2f3e42047d17313eeb38d354048f343158402a8d)

  • GnuPG-bug-id: T2246
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Feb 12 2016, 2:00 AM
Parents
rG22caa5c2d4b6: Fix possible sign extension problem with newer compilers.
Branches
Unknown
Tags
Unknown