From: Roy Marples Date: Mon, 8 Jun 2026 16:51:29 +0000 (+0100) Subject: privsep: avoid a compile warning on systems without setproctitle X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da9a2457499c54b090f56f18fa604ebfe02ed299;p=thirdparty%2Fdhcpcd.git privsep: avoid a compile warning on systems without setproctitle --- diff --git a/src/privsep-root.c b/src/privsep-root.c index f50cc351..cd231a69 100644 --- a/src/privsep-root.c +++ b/src/privsep-root.c @@ -644,12 +644,14 @@ ps_root_startcb(struct ps_process *psp) { struct dhcpcd_ctx *ctx = psp->psp_ctx; +#ifdef HAVE_SETPROCTITLE if (ctx->options & DHCPCD_MANAGER) setproctitle("[privileged proxy]"); else setproctitle("[privileged proxy] %s%s%s", ctx->ifv[0], ctx->options & DHCPCD_IPV4 ? " [ip4]" : "", ctx->options & DHCPCD_IPV6 ? " [ip6]" : ""); +#endif ctx->options |= DHCPCD_PRIVSEPROOT; if (if_opensockets(ctx) == -1)