gpg 1.2.6 fails to create ~/.gnupg on Solaris

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


On Fri, 24 Sep 2004 13:19:59 +0200, Werner Koch <wk at gnupg.org> 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 g10code.de>
> 
>         * 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:

   http://cvs.gnupg.org/cgi-bin/viewcvs.cgi/*checkout*/gnupg/g10/keydb.c?rev=1.4.2.6&only_with_tag=STABLE-BRANCH-1-2&content-type=text/plain

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.
-- 
Brian Greenberg
grnbrg at gmail.com



More information about the Gnupg-users mailing list