From 57e0e45970b8c1cf0d36ab07efd4c19d92529e85 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 15 Oct 2013 15:57:58 +0200 Subject: [PATCH] don't overwrite interface config from netifd --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index e31740b..baa8579 100644 --- a/src/config.c +++ b/src/config.c @@ -270,7 +270,7 @@ int config_parse_interface(struct blob_attr *b, const char *name, bool overwrite iface = calloc(1, sizeof(*iface)); strncpy(iface->name, name, sizeof(iface->name) - 1); list_add(&iface->head, &interfaces); - } else { + } else if (overwrite) { clean_interface(iface); } -- 2.30.2