diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gpg-card.c | 2 | ||||
-rw-r--r-- | tools/gpg-connect-agent.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/tools/gpg-card.c b/tools/gpg-card.c index 1ccace478..d851f99fc 100644 --- a/tools/gpg-card.c +++ b/tools/gpg-card.c @@ -294,6 +294,8 @@ main (int argc, char **argv) exit (2); /* Process common component options. */ + gpgrt_set_confdir (GPGRT_CONFDIR_SYS, gnupg_sysconfdir ()); + gpgrt_set_confdir (GPGRT_CONFDIR_USER, gnupg_homedir ()); if (parse_comopt (GNUPG_MODULE_NAME_CARD, opt.debug)) { gnupg_status_printf (STATUS_FAILURE, "option-parser %u", diff --git a/tools/gpg-connect-agent.c b/tools/gpg-connect-agent.c index 8d9e83fa8..eb897287c 100644 --- a/tools/gpg-connect-agent.c +++ b/tools/gpg-connect-agent.c @@ -1257,7 +1257,10 @@ main (int argc, char **argv) if (log_get_errorcount (0)) exit (2); - /* Process common component options. */ + /* Process common component options. Note that we set the config + * dir only here so that --homedir will have an effect. */ + gpgrt_set_confdir (GPGRT_CONFDIR_SYS, gnupg_sysconfdir ()); + gpgrt_set_confdir (GPGRT_CONFDIR_USER, gnupg_homedir ()); if (parse_comopt (GNUPG_MODULE_NAME_CONNECT_AGENT, opt.verbose > 1)) exit(2); |