summaryrefslogtreecommitdiff
path: root/conf-parser.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-27 00:19:06 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-27 00:19:06 +0100
commitf1857be0b96016de27a725339707f8ab7326a70d (patch)
tree0437abd8a26648d2c8babd9fe422c26c47f33e1c /conf-parser.c
parent0301abf48ed3be921c33d409c73b554435cf6378 (diff)
allow a simple upgrade path for service files by ignoring unknown config items instead of failing on them
Diffstat (limited to 'conf-parser.c')
-rw-r--r--conf-parser.c4
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 */