From: Werner Koch Date: Fri, 7 Apr 2017 08:11:07 +0000 (+0200) Subject: gpg: Fix printing of offline taken subkey. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=9aba23b4ac1bc3cc6217977c4089f90b21f8e714;p=gnupg2.git gpg: Fix printing of offline taken subkey. * g10/keylist.c (list_keyblock_print): Set SECRET to 2 and not 0x32. -- Reported-by: Danielle McLean Signed-off-by: Werner Koch (cherry picked from commit 547bc01d57528ecc27b3b5e16797967a7f88fecf) Gbp-Pq: Name 0065-gpg-Fix-printing-of-offline-taken-subkey.patch --- diff --git a/g10/keylist.c b/g10/keylist.c index 4078053..1998ee9 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -1017,7 +1017,7 @@ list_keyblock_print (ctrl_t ctrl, kbnode_t keyblock, int secret, int fpr, if (!agent_get_keyinfo (NULL, hexgrip, &serialno, NULL)) secret = serialno? 3 : 1; else - secret = '2'; /* Key not found. */ + secret = 2; /* Key not found. */ } /* Print the "sub" line. */