Diffusion GnuPG d957e4388f72

g10: Make sure to have the directory for trustdb.

Authored by gniibe on Feb 12 2016, 2:00 AM.

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

Committed
gniibeFeb 12 2016, 2:18 AM
Parents
rG22caa5c2d4b6: Fix possible sign extension problem with newer compilers.
Branches
Unknown
Tags
Unknown
NIIBE Yutaka <gniibe@fsij.org> committed rGd957e4388f72: g10: Make sure to have the directory for trustdb. (authored by NIIBE Yutaka <gniibe@fsij.org>).Feb 12 2016, 2:18 AM
gniibe mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:09 PM
gniibe mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:32 PM