mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-29 01:20:28 +00:00
conf-parser: properly handle known but not parsed assignments
This commit is contained in:
+6
-2
@@ -131,8 +131,12 @@ static int next_assignment(
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (func)
|
||||
return func(filename, line, section, lvalue, ltype, rvalue, data, userdata);
|
||||
if (r > 0) {
|
||||
if (func)
|
||||
return func(filename, line, section, lvalue, ltype, rvalue, data, userdata);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Warn about unknown non-extension fields. */
|
||||
if (!relaxed && !startswith(lvalue, "X-"))
|
||||
|
||||
Reference in New Issue
Block a user