]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: Fix FreeBSD for prior
authorRoy Marples <roy@marples.name>
Wed, 17 Mar 2021 15:19:27 +0000 (15:19 +0000)
committerRoy Marples <roy@marples.name>
Wed, 17 Mar 2021 15:19:27 +0000 (15:19 +0000)
src/privsep-bsd.c

index 2ca26a53a826b77f486708f0caf043eab919fd76..f13d329fff1908dda9ea1e131424e3dee8062ad8 100644 (file)
@@ -250,7 +250,7 @@ ps_root_indirectioctl(struct dhcpcd_ctx *ctx, unsigned long request,
 
        strlcpy(buf, ifname, IFNAMSIZ);
        memcpy(buf + IFNAMSIZ, data, len);
-       if (ps_sendcmd(ctx, ctx->ps_root_fd, PS_IOCTLINDIRECT,
+       if (ps_sendcmd(ctx, ctx->ps_root->psp_fd, PS_IOCTLINDIRECT,
            request, buf, IFNAMSIZ + len) == -1)
                return -1;
        return ps_root_readerror(ctx, data, len);
@@ -260,7 +260,7 @@ ssize_t
 ps_root_ifignoregroup(struct dhcpcd_ctx *ctx, const char *ifname)
 {
 
-       if (ps_sendcmd(ctx, ctx->ps_root_fd, PS_IFIGNOREGRP, 0,
+       if (ps_sendcmd(ctx, ctx->ps_root->psp_fd, PS_IFIGNOREGRP, 0,
            ifname, strlen(ifname) + 1) == -1)
                return -1;
        return ps_root_readerror(ctx, NULL, 0);