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: 0.git+20100605+dfd8ee-1~414 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1857be0b96016de27a725339707f8ab7326a70d;p=systemd 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 78078cc0..2f013e3f 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 */