gpg 1.2.6 fails to create ~/.gnupg on Solaris

Brian Greenberg grnbrg at
Fri Sep 24 16:36:09 CEST 2004

On Fri, 24 Sep 2004 13:19:59 +0200, Werner Koch <wk at> wrote:
> On Fri, 24 Sep 2004 00:47:42 -0700 (PDT), Lee Johnson said:
> > Hello:
> > I have just installed GPG 1.2.6 in a Solaris (5.8) environment using GCC
> > 2.95.3.  I ran into only one problem during the compile (a "Bus Error"
> > message on every invocation that went away when I took out the
> > --enable-m-guard option).
> > However, gpg fails to create a ~/.gnupg directory for users.  It lists off
> > a few errors about failing to create temporary files and then terminates
> This is a known problem.
> 2004-08-31  Werner Koch  <wk at>
>         * keydb.c (maybe_create_keyring): Try to create the home directory
>         before acquiring a lock for the keyring.

The fix can be downloaded from the CVS:*checkout*/gnupg/g10/keydb.c?rev=

BTW:  Is there any good reason *not* to use a lockfile when creating
the gpg home dir?  The comment at the top of the patch implies that
this is because the application calling gpg should do so, but if this
code is running, it obviously *hasn't*....

Brian Greenberg
grnbrg at

More information about the Gnupg-users mailing list