From: Roy Marples Date: Mon, 18 Aug 2008 18:35:12 +0000 (+0000) Subject: Fix Test returning to userland. X-Git-Tag: v4.0.2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54d4db3a260989e8c66e535a6d06121b761b881d;p=thirdparty%2Fdhcpcd.git Fix Test returning to userland. --- diff --git a/client.c b/client.c index 18be14aa..72178c8d 100644 --- a/client.c +++ b/client.c @@ -1431,7 +1431,9 @@ handle_dhcp(struct if_state *state, struct dhcp_message **dhcpp, log_dhcp(LOG_INFO, "offered", dhcp); if (state->options & DHCPCD_TEST) { run_script(options, iface->name, "TEST", dhcp, NULL); - return 0; + /* Fake the fact we forked so we return 0 to userland */ + state->options |= DHCPCD_FORKED; + return -1; } free(state->offer); state->offer = dhcp;