chiark / gitweb /
Import gnupg2_2.1.18-8~deb9u1.debian.tar.bz2
[gnupg2.git] / patches / 0065-gpg-Fix-printing-of-offline-taken-subkey.patch
1 From: Werner Koch <wk@gnupg.org>
2 Date: Fri, 7 Apr 2017 10:11:07 +0200
3 Subject: gpg: Fix printing of offline taken subkey.
4
5 * g10/keylist.c (list_keyblock_print): Set SECRET to 2 and not 0x32.
6 --
7
8 Reported-by: Danielle McLean <dani@00dani.me>
9 Signed-off-by: Werner Koch <wk@gnupg.org>
10 (cherry picked from commit 547bc01d57528ecc27b3b5e16797967a7f88fecf)
11 ---
12  g10/keylist.c | 2 +-
13  1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/g10/keylist.c b/g10/keylist.c
16 index 4078053..1998ee9 100644
17 --- a/g10/keylist.c
18 +++ b/g10/keylist.c
19 @@ -1017,7 +1017,7 @@ list_keyblock_print (ctrl_t ctrl, kbnode_t keyblock, int secret, int fpr,
20                if (!agent_get_keyinfo (NULL, hexgrip, &serialno, NULL))
21                  secret = serialno? 3 : 1;
22                else
23 -                secret = '2';  /* Key not found.  */
24 +                secret = 2;  /* Key not found.  */
25              }
26  
27            /* Print the "sub" line.  */