]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: Correct prior for dhcpcd-9
authorRoy Marples <roy@marples.name>
Mon, 9 Jan 2023 16:42:00 +0000 (16:42 +0000)
committerRoy Marples <roy@marples.name>
Mon, 9 Jan 2023 16:42:00 +0000 (16:42 +0000)
src/privsep.c

index 3bbee5e1b05664dbaada8c8cf723946e84b4aa43..ab29bb7bdb0210fc309b3c595ecf30edae6ff49b 100644 (file)
@@ -369,7 +369,7 @@ ps_dostart(struct dhcpcd_ctx *ctx,
 
 #ifdef PLUGIN_DEV
        /* If we are not the root process, stop listening to devices. */
-       if (ctx->ps_root != psp)
+       if (priv_fd != &ctx->ps_root_fd)
                dev_stop(ctx);
 #endif