Page MenuHome GnuPG

gpg --check-trustdb returns data on stdout when --verbose --verbose is present?
Closed, ResolvedPublic

Description

The following was reported to gnupg-devel by dkg, but got no response. I'm
creating this issue to make sure it doesn't get lost.

gpg --check-trustdb normally sends no data to stdout, even if --verbose
is specfieid once. however, when i add --verbose --verbose it sends a
lot of data to stdout, in particular, lines like this:

0:F2AD85AC1E42B367:U:::f:::Werner Koch <wk@gnupg.org>:
[...]

I believe this also happens when the trustdb is automatically checked
(though i'm not sure how to force that to happen to test it better).

sending additional data to stdout during an automatic check (or even
during --check-trustdb when it's not otherwise expected) seems
problematic for anyone using the tool programmatically.

Event Timeline

I think Werner addressed this on 2.1 with:

b03a2647299a6c8764a2574590cbaccdff9e497d

Attached is a backport of this patch to STABLE-BRANCH-2-0.

And here is a backport to STABLE-BRANCH-1-4

backport for 2.0 commited. Thanks.

neal claimed this task.

dkg: I've now applied your backport to the 1.4 branch. Sorry for not doing this
sooner. I believe that this now completely rectifies this issue. As such, I'm
marking this issue as resolve. Thanks.