From 1d282c5938d1d70c522d3bae188bb75ec1475cfe Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 4 Dec 2007 14:47:28 +0000 Subject: [PATCH] 2007-12-04 Marcus Brinkmann * gpgconf-comp.c (gc_component_list_components): Do not print a trailing semi-colon to ensure forward compatibility, as this would indicate another empty field. (gc_process_gpgconf_conf): Likewise. --- tools/ChangeLog | 1 + tools/gpgconf-comp.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ChangeLog b/tools/ChangeLog index 049039248..f38382d7e 100644 --- a/tools/ChangeLog +++ b/tools/ChangeLog @@ -3,6 +3,7 @@ * gpgconf-comp.c (gc_component_list_components): Do not print a trailing semi-colon to ensure forward compatibility, as this would indicate another empty field. + (gc_process_gpgconf_conf): Likewise. 2007-11-15 Werner Koch diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index 79d686a38..5dc55de76 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -3315,7 +3315,7 @@ gc_process_gpgconf_conf (const char *fname_arg, int update, int defaults, } fprintf (listfp, "k:%s:", my_percent_escape (key)); - fprintf (listfp, "%s:\n", group? my_percent_escape (group):""); + fprintf (listfp, "%s\n", group? my_percent_escape (group):""); } /* All other lines are rule records. */ @@ -3326,7 +3326,6 @@ gc_process_gpgconf_conf (const char *fname_arg, int update, int defaults, if (value != empty) fprintf (listfp, "\"%s", my_percent_escape (value)); - putc (':', listfp); putc ('\n', listfp); }