summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-10-15 15:57:58 +0200
committerSteven Barth <steven@midlink.org>2013-10-15 15:57:58 +0200
commit57e0e45970b8c1cf0d36ab07efd4c19d92529e85 (patch)
treec1e631147b9af7c2d3563a07b481a29656f8b820
parenta8fcb336da37c76d202f9dfc59e49a049add6e31 (diff)
don't overwrite interface config from netifd
-rw-r--r--src/config.c2
1 files changed, 1 insertions, 1 deletions
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);
}