diff options
| author | Werner Koch <[email protected]> | 2022-09-21 07:39:48 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2022-09-21 07:41:39 +0000 |
| commit | ed54fd53d1dc786c350b0c41e71afe349518f580 (patch) | |
| tree | 496464635a559727b8e1b60120f16d723f8ba08f /tools/gpg-connect-agent.c | |
| parent | dirmngr: Fix CRL DP error fallback to other schemes. (diff) | |
| download | gnupg-ed54fd53d1dc786c350b0c41e71afe349518f580.tar.gz gnupg-ed54fd53d1dc786c350b0c41e71afe349518f580.zip | |
tools: Need to set the dir for common.conf
* tools/gpg-connect-agent.c (main): Set dirs.
* tools/gpg-card.c (main): Ditto.
--
Fixes-commit: 203dcc19eb48228c60036691fe87fb37e29369a4
Diffstat (limited to 'tools/gpg-connect-agent.c')
| -rw-r--r-- | tools/gpg-connect-agent.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |
