chiark / gitweb /
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 78078cc..2f013e3 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 */