chiark / gitweb /
conf-parser: silently ignore X- extension fields
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2010 17:26:04 +0000 (19:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2010 17:26:04 +0000 (19:26 +0200)
conf-parser.c

index 712b4e4..6f5361f 100644 (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;
 }