From: Roy Marples Date: Sun, 19 Jul 2009 20:03:58 +0000 (+0000) Subject: Don't FAIL the script when testing X-Git-Tag: v5.1.0~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e41e975b72f1e8db8afa97dd75d8a44d7bb3deca;p=thirdparty%2Fdhcpcd.git Don't FAIL the script when testing --- diff --git a/dhcpcd.c b/dhcpcd.c index 4c1a5b44..071a2c1e 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -322,7 +322,8 @@ send_message(struct interface *iface, int type, * stopping the interface. */ if (r == -1) { syslog(LOG_ERR, "%s: send_raw_packet: %m", iface->name); - drop_config(iface, "FAIL"); + if (!(options & DHCPCD_TEST)) + drop_config(iface, "FAIL"); close_sockets(iface); delete_timeout(NULL, iface); callback = NULL;