aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpgconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpgconf.c')
-rw-r--r--tools/gpgconf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/gpgconf.c b/tools/gpgconf.c
index 14137ddcd..3433ed473 100644
--- a/tools/gpgconf.c
+++ b/tools/gpgconf.c
@@ -620,6 +620,12 @@ main (int argc, char **argv)
fname = argc ? *argv : NULL;
+ /* Set the configuraton directories for use by gpgrt_argparser. We
+ * don't have a configuration file for this program but we have code
+ * which reads the component's config files. */
+ gpgrt_set_confdir (GPGRT_CONFDIR_SYS, gnupg_sysconfdir ());
+ gpgrt_set_confdir (GPGRT_CONFDIR_USER, gnupg_homedir ());
+
switch (cmd)
{
case aListComponents: