[2.1.19] --list-secret-keys not # marking unavailable subkeys?

Werner Koch wk at gnupg.org
Fri Apr 7 10:16:38 CEST 2017


Hi!

On Thu,  6 Apr 2017 14:21, dani at 00dani.me said:

> It's very confusing, as it seems to indicate my secret keyring contains
> keys that it definitely doesn't. Why the inconsistency? Can I somehow

Good catch. Thanks.

There is a stupid bug in the code:

--8<---------------cut here---------------start------------->8---
               if (!agent_get_keyinfo (NULL, hexgrip, &serialno, NULL))
                 secret = serialno? 3 : 1;
               else
-                secret = '2';  /* Key not found.  */
+                secret = 2;  /* Key not found.  */
--8<---------------cut here---------------end--------------->8---

I just pushed a fix to the repo.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: </pipermail/attachments/20170407/20e09d68/attachment.sig>


More information about the Gnupg-users mailing list