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>