From: Roy Marples Date: Tue, 21 Jul 2009 20:01:42 +0000 (+0000) Subject: Don't FAIL the script when testing X-Git-Tag: v5.0.7~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e978ec217b682ac0c281ca0cb6831d2d69793a5;p=thirdparty%2Fdhcpcd.git Don't FAIL the script when testing --- diff --git a/dhcpcd.c b/dhcpcd.c index a4ab9d6a..b5cb9718 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -321,7 +321,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;