Home GnuPG
Diffusion GnuPG fdd938a5bbec

gpg: Pass --homedir to gpg-agent.
fdd938a5bbecUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Pass --homedir to gpg-agent.

* agent/gpg-agent.c (main): Make sure homedir is absolute.
* common/asshelp.c (lock_spawning): Create lock file with an absolute
name.
(start_new_gpg_agent): Use an absolute name for the socket and pass
option --homedir to the agent.
(start_new_dirmngr): Use an absolute name for the --homedir.

This patch makes gpg's --homedir option behave again like in older
versions. This is done by starting a new agent for each different
home directory. Note that this assumes --use-standard-socket is used
which is the default for 2.1.

Details

Provenance
wernerAuthored on Apr 15 2014, 4:40 PM
Parents
rG71a54313adf7: common: Add functions make_absfilename and make_absfilename_try.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGfdd938a5bbec: gpg: Pass --homedir to gpg-agent. (authored by Werner Koch <wk@gnupg.org>).Apr 22 2014, 4:59 PM