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/tools.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/tools.texi')
-rw-r--r-- | doc/tools.texi | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/tools.texi b/doc/tools.texi index 8fdaa96a7..577df8ea1 100644 --- a/doc/tools.texi +++ b/doc/tools.texi @@ -280,7 +280,7 @@ Check the options for the component @var{component}. Update all configuration files with values taken from the global configuration file (usually @file{/etc/gnupg/gpgconf.conf}). -@item --list-dirs +@item --list-dirs [@var{names}] Lists the directories used by @command{gpgconf}. One directory is listed per line, and each line consists of a colon-separated list where the first field names the directory type (for example @code{sysconfdir}) @@ -288,7 +288,9 @@ and the second field contains the percent-escaped directory. Although they are not directories, the socket file names used by @command{gpg-agent} and @command{dirmngr} are printed as well. Note that the socket file names and the @code{homedir} lines are the default -names and they may be overridden by command line switches. +names and they may be overridden by command line switches. If +@var{names} are given only the directories or file names specified by +the list names are printed without any escaping. @item --list-config [@var{filename}] List the global configuration file in a colon separated format. If |