dhcpcd: Don't open a control socket in test mode

Fixes PR bin/55170
This commit is contained in:
roy 2020-04-15 15:54:18 +00:00
parent 134268cc06
commit 09220fdb89

View File

@ -2207,7 +2207,8 @@ printpidfile:
goto run_loop;
#endif
if (control_start(&ctx,
if (!(ctx.options & DHCPCD_TEST) &&
control_start(&ctx,
ctx.options & DHCPCD_MASTER ? NULL : argv[optind]) == -1)
{
logerr("%s: control_start", __func__);