From: Lennart Poettering Date: Tue, 13 Apr 2010 17:26:04 +0000 (+0200) Subject: conf-parser: silently ignore X- extension fields X-Git-Tag: 0.git+20100605+dfd8ee-1~123 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46205bb66ab327ddea71e0577e276ca17634b26d;p=systemd conf-parser: silently ignore X- extension fields --- diff --git a/conf-parser.c b/conf-parser.c index 712b4e48..6f5361f9 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; }