summaryrefslogtreecommitdiff
path: root/conf-parser.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-13 19:26:04 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-13 19:26:04 +0200
commit46205bb66ab327ddea71e0577e276ca17634b26d (patch)
treed3e0c9f4a0e5e904d0ec849c4acdcf2c23940c7d /conf-parser.c
parent5e7ee61c1a2b45c1006336f22ded8e099d155270 (diff)
conf-parser: silently ignore X- extension fields
Diffstat (limited to 'conf-parser.c')
-rw-r--r--conf-parser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/conf-parser.c b/conf-parser.c
index 712b4e489c..6f5361f9c8 100644
--- a/conf-parser.c
+++ b/conf-parser.c
@@ -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;
}