gpg: Fix output in case of a corrupted trustdb.
authorWerner Koch <wk@gnupg.org>
Thu, 4 Jun 2015 15:34:33 +0000 (17:34 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 4 Jun 2015 15:34:55 +0000 (17:34 +0200)
commitbf06d04f53296f4b4b73b9360cf1571559bb2295
tree1cf683828bb43715bc1b9896886a4ceb14a62bdd
parent840f807a908ee90cd784009f69e783e2e8f7a2cd
gpg: Fix output in case of a corrupted trustdb.

* g10/tdbdump.c (list_trustdb): Add arg FP and change callers to pass
es_stdout.
* g10/tdbio.c (upd_hashtable): On a corrupted trustdb call
list_trustdb only in verbose > 1 mode and let it dump to stderr.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/gpg.c
g10/tdbdump.c
g10/tdbio.c
g10/trustdb.h