Gpgverify assumes wrong default gnupg setup (with patch)

Russ Allbery rra at stanford.edu
Sat Feb 28 21:10:06 UTC 2004


Toon van der Pas <toon at hout.vanvergehaald.nl> writes:

> But then the INSTALL text should be changed to reflect the fact that it
> doesn't work with the default pgp and gnupg setups.  Right now it states
> that the default location WILL work.

The INSTALL text correctly describes the intended behavior.  In what way
does it not work?

> And the pgpverify manpage needs some attention as well:

>    By default, when running as part of INN, pgpverify expects the
>    PGP key ring to be found in pathetc/pgp (as either pubring.pgp
>    or pubring.gpg depending on whether PGP or GnuPG is used to
>    verify signatures).  If that directory doesn't exist, it will
>    fall back on using the default key ring, which is in a .pgp or
>    .gnupg subdirectory of the running user's home directory.

> It doesn't fall back at all.

How does it not fall back?  Here's the code in pgpverify:

if (! $keyring && $inn::newsetc) {
  $keyring = $inn::newsetc . '/pgp' if -d $inn::newsetc . '/pgp';
}

Why does this not work for you?

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.


More information about the inn-workers mailing list