From 7fd9d455c7f0d19a87f97ce11942d532c71de05f Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 15 Oct 2013 17:06:41 +0200 Subject: [PATCH] Ignore missing ifname from netifd --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index e33c855..7700c7e 100644 --- a/src/config.c +++ b/src/config.c @@ -284,7 +284,7 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr else if ((c = tb[IFACE_ATTR_NETWORKID])) ifname = blobmsg_get_string(c); - if (!ifname) + if (!iface->ifname[0] && !ifname) return -1; strncpy(iface->ifname, ifname, sizeof(iface->ifname) - 1); -- 2.11.0