allow a simple upgrade path for service files by ignoring unknown config items instead of failing on them

This commit is contained in:
Lennart Poettering 2010-01-27 00:19:06 +01:00
parent 0301abf48e
commit f1857be0b9
1 changed files with 2 additions and 2 deletions

View File

@ -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 */