Home GnuPG
Diffusion GnuPG a27410a251cd

g10: Fix opening of trust database.
a27410a251cdUnpublished

Unpublished Commit ยท Learn More

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

Description

g10: Fix opening of trust database.

* g10/tdbio.c (tdbio_set_dbname): This function explicitly checks for
the file size, but handled the case of a zero-sized file incorrectly
by returning success.  Fix this by initializing the database in that
case.
* tests/openpgp/Makefile.am (XTESTS): Add new test.
* tests/openpgp/issue2417.scm: New file.
  • GnuPG-bug-id: T2417
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Aug 10 2016, 4:41 PM
Parents
rG194b1e979c7c: tests: Fix distcheck.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rGa27410a251cd: g10: Fix opening of trust database. (authored by Justus Winter <justus@g10code.com>).Aug 10 2016, 4:50 PM
justus mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:10 PM
justus mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:33 PM