g10: Make sure to have the directory for trustdb.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 12 Feb 2016 01:10:33 +0000 (10:10 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 12 Feb 2016 01:10:33 +0000 (10:10 +0900)
commitd9f9b3be036747c9f55060aed47896f951bfb853
treed24f99f522d370978776b83a6b5f6c5a0faa3226
parent75311cfe18071b94c66121a9785b133b6df345a3
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.

GnuPG-bug-id: 2246

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/tdbio.c