summaryrefslogtreecommitdiffstats
path: root/tools/gpg-card.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2022-09-21 09:39:48 +0200
committerWerner Koch <wk@gnupg.org>2022-09-21 09:41:39 +0200
commited54fd53d1dc786c350b0c41e71afe349518f580 (patch)
tree496464635a559727b8e1b60120f16d723f8ba08f /tools/gpg-card.c
parentdirmngr: Fix CRL DP error fallback to other schemes. (diff)
downloadgnupg2-ed54fd53d1dc786c350b0c41e71afe349518f580.tar.xz
gnupg2-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-card.c')
-rw-r--r--tools/gpg-card.c2
1 files changed, 2 insertions, 0 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",