From: Steven Barth Date: Tue, 15 Oct 2013 13:57:58 +0000 (+0200) Subject: don't overwrite interface config from netifd X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=57e0e45970b8c1cf0d36ab07efd4c19d92529e85;p=oweals%2Fodhcpd.git don't overwrite interface config from netifd --- 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); }