From: Roy Marples Date: Wed, 17 Mar 2021 15:19:27 +0000 (+0000) Subject: privsep: Fix FreeBSD for prior X-Git-Tag: v10.0.0~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77ef5d931a6723abe7114edfd563b17b299bcf54;p=thirdparty%2Fdhcpcd.git privsep: Fix FreeBSD for prior --- diff --git a/src/privsep-bsd.c b/src/privsep-bsd.c index 2ca26a53..f13d329f 100644 --- a/src/privsep-bsd.c +++ b/src/privsep-bsd.c @@ -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);