summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-31 22:23:35 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-03-31 22:23:37 +0200
commit386453cbc5cc8ecdfbe8c53ff8cd058945fd821b (patch)
tree25d51e405784978dae0d95a40bea1cbb22e76ec3 /config.c
parentf1e5b2292ea452af8d46267f4bbcc515841963ce (diff)
downloadnetifd-386453cbc5cc8ecdfbe8c53ff8cd058945fd821b.tar.gz
config: ignore config parser errors
This helps with keeping routers reachable when there are typos in the network config. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'config.c')
-rw-r--r--config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.c b/config.c
index 4fe72dc..14a91a5 100644
--- a/config.c
+++ b/config.c
@@ -190,6 +190,7 @@ config_init_package(const char *config)
ctx = uci_alloc_context();
uci_ctx = ctx;
+ ctx->flags &= ~UCI_FLAG_STRICT;
if (config_path)
uci_set_confdir(ctx, config_path);