core: Don't split gpgconf strings on comma

* src/engine-gpgconf.c (gpgconf_parse_option): Don't split
strings on comma.

--
This only affects values where the main type is string. Values
with the alt_type string but another main type are still split
to keep lists (e.g. groups) working.
This commit is contained in:
Andre Heinecke 2017-04-05 18:23:48 +02:00
parent 28734240e2
commit df4eb611e3
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View File

@ -399,7 +399,7 @@ gpgconf_parse_option (gpgme_conf_opt_t opt,
gpgme_conf_arg_t *arg_p, char *line) gpgme_conf_arg_t *arg_p, char *line)
{ {
gpgme_error_t err; gpgme_error_t err;
char *mark; char *mark = NULL;
if (!line[0]) if (!line[0])
return 0; return 0;
@ -408,6 +408,7 @@ gpgconf_parse_option (gpgme_conf_opt_t opt,
{ {
gpgme_conf_arg_t arg; gpgme_conf_arg_t arg;
if (opt->type != GPGME_CONF_STRING)
mark = strchr (line, ','); mark = strchr (line, ',');
if (mark) if (mark)
*mark = '\0'; *mark = '\0';