1
0
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:
Lennart Poettering 2010-04-13 19:26:04 +02:00
parent 5e7ee61c1a
commit 46205bb66a

View File

@ -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;
}