From f1857be0b96016de27a725339707f8ab7326a70d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 27 Jan 2010 00:19:06 +0100 Subject: [PATCH] allow a simple upgrade path for service files by ignoring unknown config items instead of failing on them --- conf-parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.39.5