From: Roy Marples Date: Sun, 14 Apr 2019 09:53:25 +0000 (+0300) Subject: sun: Don't report error if interface does not exist during preinit X-Git-Tag: v7.2.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=558c927371f9c5475f75c7e29800d20a1f873afc;p=thirdparty%2Fdhcpcd.git sun: Don't report error if interface does not exist during preinit For sun this is normal as we only create the initial interface when adding an address. --- diff --git a/src/dhcpcd.c b/src/dhcpcd.c index 384107a8..fa5d5d59 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -979,7 +979,12 @@ dhcpcd_prestartinterface(void *arg) if ((!(ifp->ctx->options & DHCPCD_MASTER) || ifp->options->options & DHCPCD_IF_UP) && - if_up(ifp) == -1) + if_up(ifp) == -1 +#ifdef __sun + /* Interface could not yet be plumbed. */ + && errno != ENXIO +#endif + ) logerr("%s: %s", __func__, ifp->name); if (ifp->options->options & DHCPCD_LINK &&