aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2007-06-18 20:15:01 +0000
committerMarcus Brinkmann <[email protected]>2007-06-18 20:15:01 +0000
commite47321829dde8fb24d63b42d20047db8028ff227 (patch)
treeef177e4395132ffa15688d8f0bf593823b9a97c3 /g10/gpg.c
parent2007-06-18 Marcus Brinkmann <[email protected]> (diff)
downloadgnupg-e47321829dde8fb24d63b42d20047db8028ff227.tar.gz
gnupg-e47321829dde8fb24d63b42d20047db8028ff227.zip
jnlib/
2007-06-18 Marcus Brinkmann <[email protected]> * stringhelp.h (percent_escape): New prototype. * stringhelp.c (percent_escape): New function. agent/ 2007-06-18 Marcus Brinkmann <[email protected]> * gpg-agent.c (main): Percent escape pathname in --gpgconf-list output. g10/ 2007-06-18 Marcus Brinkmann <[email protected]> * gpg.c (gpgconf_list): Percent escape output of --gpgconf-list. scdaemon/ 2007-06-18 Marcus Brinkmann <[email protected]> * scdaemon.c (main): Percent escape output of --gpgconf-list. sm/ 2007-06-18 Marcus Brinkmann <[email protected]> * gpgsm.c (main): Percent escape output of --gpgconf-list.
Diffstat (limited to '')
-rw-r--r--g10/gpg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index b6776de59..1e202f681 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -1456,16 +1456,20 @@ list_config(char *items)
static void
gpgconf_list (const char *configfile)
{
+ char *configfile_esc = percent_escape (configfile);
+
/* The following definitions are taken from gnupg/tools/gpgconf-comp.c. */
#define GC_OPT_FLAG_NONE 0UL
#define GC_OPT_FLAG_DEFAULT (1UL << 4)
printf ("gpgconf-gpg.conf:%lu:\"%s\n",
- GC_OPT_FLAG_DEFAULT,configfile?configfile:"/dev/null");
+ GC_OPT_FLAG_DEFAULT, configfile_esc ? configfile_esc : "/dev/null");
printf ("verbose:%lu:\n", GC_OPT_FLAG_NONE);
printf ("quiet:%lu:\n", GC_OPT_FLAG_NONE);
printf ("keyserver:%lu:\n", GC_OPT_FLAG_NONE);
printf ("reader-port:%lu:\n", GC_OPT_FLAG_NONE);
+
+ xfree (configfile_esc);
}