]> err.no Git - systemd/commitdiff
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 712b4e489c3fc9e7c35988d3b79978ead1bd458d..6f5361f9c81efc5770140a7725ba0a1e2589d335 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;
 }