'wrong interface' specification. So display that error message only for
non-static leases. i.e. when reading /var/db/dhclient.leases.<if>.
-/* $OpenBSD: clparse.c,v 1.86 2014/05/11 12:40:37 krw Exp $ */
+/* $OpenBSD: clparse.c,v 1.87 2014/05/12 13:12:41 krw Exp $ */
/* Parser for dhclient config and lease files. */
return;
}
if (strcmp(ifi->name, val) != 0) {
- parse_warn("wrong interface name.");
+ if (lease->is_static == 0)
+ parse_warn("wrong interface name.");
skip_to_semi(cfile);
return;
}