aboutsummaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/scdaemon.c')
-rw-r--r--scd/scdaemon.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c
index 5066a373b..d0306aeb6 100644
--- a/scd/scdaemon.c
+++ b/scd/scdaemon.c
@@ -538,7 +538,10 @@ main (int argc, char **argv )
}
if (gpgconf_list)
- { /* List options and default values in the GPG Conf format. */
+ {
+ char *filename;
+
+ /* List options and default values in the GPG Conf format. */
/* The following list is taken from gnupg/tools/gpgconf-comp.c. */
/* Option flags. YOU MUST NOT CHANGE THE NUMBERS OF THE EXISTING
@@ -557,9 +560,10 @@ main (int argc, char **argv )
a default, which is described by the value of the ARGDEF field. */
#define GC_OPT_FLAG_NO_ARG_DESC (1UL << 6)
+ filename = make_filename (opt.homedir, "scdaemon.conf", NULL);
printf ("gpgconf-scdaemon.conf:%lu:\"%s\n",
- GC_OPT_FLAG_DEFAULT,
- config_filename?config_filename:"/dev/null");
+ GC_OPT_FLAG_DEFAULT, filename);
+ xfree (filename);
printf ("verbose:%lu:\n"
"quiet:%lu:\n"