aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-06-04 15:34:33 +0000
committerWerner Koch <[email protected]>2015-06-04 15:34:55 +0000
commitbf06d04f53296f4b4b73b9360cf1571559bb2295 (patch)
tree1cf683828bb43715bc1b9896886a4ceb14a62bdd /g10/gpg.c
parentgpg: Re-indent and improve documentation of g10/tdbio.c (diff)
downloadgnupg-bf06d04f53296f4b4b73b9360cf1571559bb2295.tar.gz
gnupg-bf06d04f53296f4b4b73b9360cf1571559bb2295.zip
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 <[email protected]>
Diffstat (limited to 'g10/gpg.c')
-rw-r--r--g10/gpg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index 5a8a6621f..1801c878d 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -4167,10 +4167,10 @@ main (int argc, char **argv)
#ifndef NO_TRUST_MODELS
case aListTrustDB:
if( !argc )
- list_trustdb(NULL);
+ list_trustdb (es_stdout, NULL);
else {
for( ; argc; argc--, argv++ )
- list_trustdb( *argv );
+ list_trustdb (es_stdout, *argv );
}
break;