Mercurial > hg > dhcpcd
changeset 5144:dffabac8fd32 draft
Don't open a control socket in test mode.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 15 Apr 2020 16:50:11 +0100 |
| parents | ef39e8d21160 |
| children | c0341181c51f |
| files | src/dhcpcd.c |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcpcd.c Mon Apr 13 16:09:08 2020 +0100 +++ b/src/dhcpcd.c Wed Apr 15 16:50:11 2020 +0100 @@ -2207,7 +2207,8 @@ 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__);
