diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-27 00:19:06 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-27 00:19:06 +0100 |
commit | f1857be0b96016de27a725339707f8ab7326a70d (patch) | |
tree | 0437abd8a26648d2c8babd9fe422c26c47f33e1c | |
parent | 0301abf48ed3be921c33d409c73b554435cf6378 (diff) |
allow a simple upgrade path for service files by ignoring unknown config items instead of failing on them
-rw-r--r-- | conf-parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/conf-parser.c b/conf-parser.c index 78078cc0b9..2f013e3f24 100644 --- a/conf-parser.c +++ b/conf-parser.c @@ -44,8 +44,8 @@ static int next_assignment( return t->parse(filename, line, section, lvalue, rvalue, t->data, userdata); } - log_error("[%s:%u] Unknown lvalue '%s' in section '%s'.", filename, line, lvalue, strna(section)); - return -EBADMSG; + log_info("[%s:%u] Unknown lvalue '%s' in section '%s'. Ignoring.", filename, line, lvalue, strna(section)); + return 0; } /* Returns non-zero when c is contained in s */ |