Proposal with patch: Make socket directory host dependent

Werner Koch wk at
Fri Nov 17 08:55:07 CET 2017

On Thu, 16 Nov 2017 17:31, rainer.perske at said:

> Could you please prepend a configurable directory to this list?
> I propose this most simple change:
>   static const char * const bases[] = {
>      "/run", "/var/run", NULL};

Thus for building without any options this would be 


and for a distro build (--prefix=/) this would be


so that we need to detect this case to get the order right again.

I assume you are not using a a distro supplied gnupg; in this case a
dedicated configure option for the first socketdir to try would be
easier because it does not break existing usages.  A runtime option
can't be used here, except if we would take the list of socketdirs to
try from a global config files (e.g. /etc/gnupg/socketdirs.list).



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <>

More information about the Gnupg-devel mailing list