diff options
author | Marcus Brinkmann <mb@g10code.com> | 2007-06-18 22:15:01 +0200 |
---|---|---|
committer | Marcus Brinkmann <mb@g10code.com> | 2007-06-18 22:15:01 +0200 |
commit | e47321829dde8fb24d63b42d20047db8028ff227 (patch) | |
tree | ef177e4395132ffa15688d8f0bf593823b9a97c3 /scd/scdaemon.c | |
parent | 2007-06-18 Marcus Brinkmann <marcus@g10code.de> (diff) | |
download | gnupg2-e47321829dde8fb24d63b42d20047db8028ff227.tar.xz gnupg2-e47321829dde8fb24d63b42d20047db8028ff227.zip |
jnlib/
2007-06-18 Marcus Brinkmann <marcus@g10code.de>
* stringhelp.h (percent_escape): New prototype.
* stringhelp.c (percent_escape): New function.
agent/
2007-06-18 Marcus Brinkmann <marcus@g10code.de>
* gpg-agent.c (main): Percent escape pathname in --gpgconf-list
output.
g10/
2007-06-18 Marcus Brinkmann <marcus@g10code.de>
* gpg.c (gpgconf_list): Percent escape output of --gpgconf-list.
scdaemon/
2007-06-18 Marcus Brinkmann <marcus@g10code.de>
* scdaemon.c (main): Percent escape output of --gpgconf-list.
sm/
2007-06-18 Marcus Brinkmann <marcus@g10code.de>
* gpgsm.c (main): Percent escape output of --gpgconf-list.
Diffstat (limited to 'scd/scdaemon.c')
-rw-r--r-- | scd/scdaemon.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c index 4fe0918b6..4e45907db 100644 --- a/scd/scdaemon.c +++ b/scd/scdaemon.c @@ -1,5 +1,5 @@ /* scdaemon.c - The GnuPG Smartcard Daemon - * Copyright (C) 2001, 2002, 2004, 2005 Free Software Foundation, Inc. + * Copyright (C) 2001, 2002, 2004, 2005, 2007 Free Software Foundation, Inc. * * This file is part of GnuPG. * @@ -530,6 +530,8 @@ main (int argc, char **argv ) if (gpgconf_list) { /* List options and default values in the GPG Conf format. */ + char *filename = NULL; + char *filename_esc; /* The following list is taken from gnupg/tools/gpgconf-comp.c. */ /* Option flags. YOU MUST NOT CHANGE THE NUMBERS OF THE EXISTING @@ -548,11 +550,14 @@ 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) if (!config_filename) - config_filename = make_filename (opt.homedir, "scdaemon.conf", NULL ); + filename = make_filename (opt.homedir, "scdaemon.conf", NULL ); + filename_esc = percent_escape (filename); printf ("gpgconf-scdaemon.conf:%lu:\"%s\n", - GC_OPT_FLAG_DEFAULT, config_filename); - + GC_OPT_FLAG_DEFAULT, filename_esc); + xfree (filename_esc); + xfree (filename); + printf ("verbose:%lu:\n" "quiet:%lu:\n" "debug-level:%lu:\"none:\n" |