mirror of
https://github.com/systemd/systemd.git
synced 2025-03-25 18:50:18 +03:00
conf-parser: silently ignore X- extension fields
This commit is contained in:
parent
5e7ee61c1a
commit
46205bb66a
@ -63,7 +63,10 @@ static int next_assignment(
|
||||
return t->parse(filename, line, section, lvalue, rvalue, t->data, userdata);
|
||||
}
|
||||
|
||||
log_info("[%s:%u] Unknown lvalue '%s' in section '%s'. Ignoring.", filename, line, lvalue, strna(section));
|
||||
/* Warn about unknown non-extension fields. */
|
||||
if (!startswith(lvalue, "X-"))
|
||||
log_info("[%s:%u] Unknown lvalue '%s' in section '%s'. Ignoring.", filename, line, lvalue, strna(section));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user