Page MenuHome GnuPG

gpg-agent: request to allow specification of socket location
Closed, ResolvedPublic

Description

ssh-agent has a "-a" option, but gpg-agent doesn't have anything similar. gpg-
agent doesn't even use $TMPDIR (as many applications do) when not using standard
socket, but has /tmp hard-coded. The choice between just /tmp or $GNUPG_HOME is
limiting. I suggest using $TMPDIR, or providing an option. The relevant code is
shown with "grep -r /tmp".

Details

Version
2.0.17

Event Timeline

orlovm added a subscriber: orlovm.
werner claimed this task.
werner added a project: Won't Fix.

This has been changed in the current version:

/* Prepend the tmp directory to the template.  */
p = getenv ("TMPDIR");
if (!p || !*p)
  p = "/tmp";

An option to specify the socket name does not make sense because other tools
need to find gpg-agent. Further, 2.1 uses a standard socket in the home
directory by default.

Ok, using TMPDIR is great. I hope that 2.1 still provides the --no-use-standard-
socket option. Stating that "an option to specify the socket name does not make
sense because other tools need to find gpg-agent" doesn't make sense, unless gpg-
agent stopped providing $GPG_AGENT_INFO.

orlovm closed this task as Resolved.