gnupg-1.4.6 --import error

Gilles Espinasse g.esp at free.fr
Sat Dec 9 08:58:28 CET 2006


----- Original Message ----- 
From: "Werner Koch" <wk at gnupg.org>
To: "Gilles Espinasse" <g.esp at free.fr>
Cc: <gnupg-devel at gnupg.org>
Sent: Thursday, December 07, 2006 11:38 AM
Subject: Re: gnupg-1.4.6 --import error


> On Thu,  7 Dec 2006 08:14, g.esp at free.fr said:
>
> > touch /root/.gnupg/options.skel solve the failure
> > I find no references of this file.
> > What should be the content of options.skel?
>
> It is a configuration file template.  It should be copied from
> /usr/local/share/gnupg/options.skel to a newly created homedir.
>
> As it is just a convenience file tehre should be no error retun in
> case itis missing.  I'll fix that.
>
>
I have extracted the changes in g10 configure.ac, openfile.c, Makefile.am
from svn and tested.
The error is gone.
But the behavior is different from 1.4.5.
gnupg.conf was directly copied during --import and options.skel content is
not copied.

Is not this warning misleading?
gpg: can't open `/gnupg/options.skel': No such file or directory
You would think that you need to create a `/gnupg/options.skel' file.

strace show that options.skel is not an name that gpg is looking at.
access("/root/.gnupg/gpg.conf-1.4.6", R_OK) = -1 ENOENT (No such file or
directory)
access("/root/.gnupg/gpg.conf-1.4", R_OK) = -1 ENOENT (No such file or
directory)
access("/root/.gnupg/gpg.conf-1", R_OK) = -1 ENOENT (No such file or
directory)
access("/root/.gnupg/gpg.conf", R_OK)   = -1 ENOENT (No such file or
directory)
stat64("/root/.gnupg", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
stat64("/root", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
getuid32()                              = 0
open("/root/.gnupg/options", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file
or directory)

options.skel as previous gpg.conf state that
# These first three lines are not copied to the gpg.conf file in
# the users home directory.

I can't say it's totally false as there is no more a copy of the default
configuration.

Gilles




More information about the Gnupg-devel mailing list