[pkg-gnupg-maint] Bug#645426: gpg --homedir /nonexistent --gen-key goes through the entire key generation process, then errors out

Josh Triplett josh at joshtriplett.org
Sat Apr 19 12:00:30 BST 2025


On Sat, Apr 19, 2025 at 07:33:59AM +0200, Andreas Metzler wrote:
> On 2025-04-18 Josh Triplett <josh at joshtriplett.org> wrote:
> > On Fri, Apr 18, 2025 at 06:41:34PM +0200, Andreas Metzler wrote:
> >> On 2011-10-15 Josh Triplett <josh at joshtriplett.org> wrote:
> >>> Package: gnupg
> >>> Version: 1.4.11-3
> >>> Severity: normal
> 
> >>> For a quick test, I needed to generate a temporary GPG key.  I started
> >>> with "gpg --homedir /tmp/gpg-temp --gen-key".  This walked me all the
> >>> way through the key generation process, including lengthy entropy
> >>> collection, before erroring out because the directory didn't exist (I'd
> >>> expected gpg to create it):
> >> [...]
>  
> >> This was marked wontfix and closed upstream:
> [...]
> > Clarifying something here: while I would love to have seen gpg *create*
> > the directory, the most important part of the bug here is "detect early
> > that it doesn't exist, and error out before going through the whole
> > interactive process".
> 
> Yes, that is how I read your report, it really is not nice.
> 
> I have added a comment on the upstream bts to emphasize this, perhaps it
> helps.

Thank you!



More information about the pkg-gnupg-maint mailing list