diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-13 19:26:04 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-13 19:26:04 +0200 |
commit | 46205bb66ab327ddea71e0577e276ca17634b26d (patch) | |
tree | d3e0c9f4a0e5e904d0ec849c4acdcf2c23940c7d | |
parent | 5e7ee61c1a2b45c1006336f22ded8e099d155270 (diff) |
conf-parser: silently ignore X- extension fields
-rw-r--r-- | conf-parser.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/conf-parser.c b/conf-parser.c index 712b4e489c..6f5361f9c8 100644 --- a/conf-parser.c +++ b/conf-parser.c @@ -63,7 +63,10 @@ static int next_assignment( return t->parse(filename, line, section, lvalue, rvalue, t->data, userdata); } - log_info("[%s:%u] Unknown lvalue '%s' in section '%s'. Ignoring.", filename, line, lvalue, strna(section)); + /* Warn about unknown non-extension fields. */ + if (!startswith(lvalue, "X-")) + log_info("[%s:%u] Unknown lvalue '%s' in section '%s'. Ignoring.", filename, line, lvalue, strna(section)); + return 0; } |