]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't open a control socket in test mode.
authorRoy Marples <roy@marples.name>
Wed, 15 Apr 2020 15:50:11 +0000 (16:50 +0100)
committerRoy Marples <roy@marples.name>
Wed, 15 Apr 2020 15:50:11 +0000 (16:50 +0100)
src/dhcpcd.c

index eb8d5608a443d3e2c43b732c5479ca117e4dda48..7bf52f4f48d7559ce783a988439a73428737f70c 100644 (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__);