]> err.no Git - systemd/commitdiff
allow a simple upgrade path for service files by ignoring unknown config items instea...
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Jan 2010 23:19:06 +0000 (00:19 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Jan 2010 23:19:06 +0000 (00:19 +0100)
conf-parser.c

index 78078cc0b9f47a3d9df2d54679db5f898ba4f0d2..2f013e3f24c26f19a76aa7d1ec7b1d220cfbdf07 100644 (file)
@@ -44,8 +44,8 @@ static int next_assignment(
                 return t->parse(filename, line, section, lvalue, rvalue, t->data, userdata);
         }
 
-        log_error("[%s:%u] Unknown lvalue '%s' in section '%s'.", filename, line, lvalue, strna(section));
-        return -EBADMSG;
+        log_info("[%s:%u] Unknown lvalue '%s' in section '%s'. Ignoring.", filename, line, lvalue, strna(section));
+        return 0;
 }
 
 /* Returns non-zero when c is contained in s */