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:
parent
28734240e2
commit
df4eb611e3
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user