Commit 9a6c24fc authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't report NO for unparseable lines.

parent ffc0bfcf
...@@ -896,9 +896,9 @@ parse_config_line(int c, gnc_t gnc, void *closure, ...@@ -896,9 +896,9 @@ parse_config_line(int c, gnc_t gnc, void *closure,
c = skip_to_eol(c, gnc, closure); c = skip_to_eol(c, gnc, closure);
if(c < -1 || !action_return) if(c < -1 || !action_return)
goto fail; goto fail;
*action_return = CONFIG_ACTION_NO; /* Unfortunately, we cannot report NO here, since we don't know if
if(message_return) the line is parsable. Oh, well. */
*message_return = "Permission denied"; goto fail;
} else if(strcmp(token, "in") == 0) { } else if(strcmp(token, "in") == 0) {
struct filter *filter; struct filter *filter;
c = parse_filter(c, gnc, closure, &filter); c = parse_filter(c, gnc, closure, &filter);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment