diff options
author | Werner Koch <[email protected]> | 2016-07-11 11:05:37 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-07-11 11:06:48 +0000 |
commit | 7732b332886792b2bbf47ecf7430e953f1c55a2c (patch) | |
tree | 02055054c563e8e0ab8b7e97f752d9c973b981ce /doc/gpg-agent.texi | |
parent | gpgv: Tweak default options for extra security. (diff) | |
download | gnupg-7732b332886792b2bbf47ecf7430e953f1c55a2c.tar.gz gnupg-7732b332886792b2bbf47ecf7430e953f1c55a2c.zip |
gpgconf: Enhance --list-dirs.
* tools/gpgconf.c (main) <aListDir>: Factor code out to ...
(list_dirs): new. Rewrite to use a table. Allow selection of a
items. Add "agent-ssh-socket".
--
This change makes the use of gpgconf in scripts easier. For example,
to set the envvar with the name of the socket used by ssh, it is now
possible to do this:
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
which guarantees that the right name is used.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'doc/gpg-agent.texi')
-rw-r--r-- | doc/gpg-agent.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/gpg-agent.texi b/doc/gpg-agent.texi index 37774dde2..cd5d7518d 100644 --- a/doc/gpg-agent.texi +++ b/doc/gpg-agent.texi @@ -815,7 +815,7 @@ it by adding this to your init script: @example unset SSH_AGENT_PID if [ "$@{gnupg_SSH_AUTH_SOCK_by:-0@}" -ne $$ ]; then - export SSH_AUTH_SOCK="$@{HOME@}/.gnupg/S.gpg-agent.ssh" + export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" fi @end example @end cartouche |