From e41e975b72f1e8db8afa97dd75d8a44d7bb3deca Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sun, 19 Jul 2009 20:03:58 +0000 Subject: [PATCH] Don't FAIL the script when testing --- dhcpcd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.47.3