summaryrefslogtreecommitdiff
path: root/src/conf-parser.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-17 03:30:53 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-17 03:30:53 +0200
commitc0b346969d79c6b405f9ca23ce18655fda1651d6 (patch)
treeb0db336f8c337d0a8699f8e6ca26baf298e38fe1 /src/conf-parser.h
parent5192bd1945f59254b3d260ded15dd9f2b8cc2de7 (diff)
load-fragment: make parser more forgiving
Diffstat (limited to 'src/conf-parser.h')
-rw-r--r--src/conf-parser.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/conf-parser.h b/src/conf-parser.h
index 2797076572..43469a3f87 100644
--- a/src/conf-parser.h
+++ b/src/conf-parser.h
@@ -71,8 +71,8 @@ int config_parse_path_strv(const char *filename, unsigned line, const char *sect
assert(data); \
\
if ((x = name##_from_string(rvalue)) < 0) { \
- log_error("[%s:%u] " msg ": %s", filename, line, rvalue); \
- return -EBADMSG; \
+ log_error("[%s:%u] " msg ", ignoring: %s", filename, line, rvalue); \
+ return 0; \
} \
\
*i = x; \
@@ -80,5 +80,4 @@ int config_parse_path_strv(const char *filename, unsigned line, const char *sect
return 0; \
}
-
#endif