From: Lennart Poettering Date: Tue, 26 Jan 2010 23:19:06 +0000 (+0100) Subject: allow a simple upgrade path for service files by ignoring unknown config items instea... X-Git-Tag: v1~811 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=f1857be0b96016de27a725339707f8ab7326a70d allow a simple upgrade path for service files by ignoring unknown config items instead of failing on them --- diff --git a/conf-parser.c b/conf-parser.c index 78078cc0b..2f013e3f2 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 */