Bug#838153: [pkg-gnupg-maint] Bug#838153: gnupg: `gpg --fingerprint --list-key` doesn't show the key fingerprint
Hi, I just pushed a fix to upstream. Also attached. Salam-Shalom, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. From 998643666c016dbacf10f813c22efc97deadec65 Mon Sep 17 00:00:00 2001 From: Werner KochDate: Mon, 19 Sep 2016 17:47:56 +0200 Subject: [PATCH] gpg: Fix regression in fingerprint printing. * g10/keylist.c (list_keyblock_print): Do not depend calling print_fingerprint on opt.keyid_format. -- Regression-due-to: d757009a24eb856770fc3a3729e2f21f54d2a618 Debian-bug-id: 838153 Signed-off-by: Werner Koch --- g10/keylist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g10/keylist.c b/g10/keylist.c index bef1e07..212d77e 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -909,7 +909,7 @@ list_keyblock_print (ctrl_t ctrl, kbnode_t keyblock, int secret, int fpr, /* Print the "pub" line and in KF_NONE mode the fingerprint. */ print_key_line (es_stdout, pk, secret); - if (fpr && opt.keyid_format != KF_NONE) + if (fpr) print_fingerprint (NULL, pk, 0); if (opt.with_keygrip && hexgrip) -- 2.8.1 pgpdIM0_e768V.pgp Description: PGP signature
Bug#838153: gnupg: `gpg --fingerprint --list-key` doesn't show the key fingerprint
Package: gnupg Version: 2.1.15-3 Severity: important Dear Maintainer, I think it's actually an upstream bug since ‘d/patches/0020-gpg-print-fingerprint-regardless-of-keyid-format.patch’ seems to have been merged upstream, but in doubt I report this here. ~$ gpg --no-options --list-key 6294BE9B pub rsa4096 2011-01-05 [SC] DF9B9C49EAA9298432589D76DA87E80D6294BE9B uid [ unknown] Debian CD signing keysub rsa4096 2011-01-05 [E] ~$ gpg --no-options --fingerprint --list-key 6294BE9B pub rsa4096 2011-01-05 [SC] uid [ unknown] Debian CD signing key sub rsa4096 2011-01-05 [E] The key fingerprint is missing in the latter command output. I flag the issue as important since there is no way to reliably identify a key from a listing when ‘--fingerprint’ (or ‘--with-fingerprint’) is set. Thanks for maintaining GnuPG in Debian! -- Guilhem. -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.7.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages gnupg depends on: ii gnupg-agent2.1.15-3 ii libassuan0 2.4.3-1 ii libbz2-1.0 1.0.6-8 ii libc6 2.24-2 ii libgcrypt201.7.3-1 ii libgpg-error0 1.24-1 ii libksba8 1.3.5-2 ii libreadline6 6.3-8+b4 ii libsqlite3-0 3.14.2-1 ii zlib1g 1:1.2.8.dfsg-2+b1 Versions of packages gnupg recommends: ii dirmngr 2.1.15-3 pn gnupg-l10n Versions of packages gnupg suggests: pn parcimonie pn xloadimage -- no debconf information signature.asc Description: PGP signature