privsep: log sandbox when not daemonising

This commit is contained in:
Roy Marples 2020-12-26 15:58:46 +00:00
parent e1c846907c
commit 111fb8364c

View File

@ -581,7 +581,9 @@ ps_mastersandbox(struct dhcpcd_ctx *ctx, const char *_pledge)
}
logerr("%s: %s", __func__, sandbox);
return -1;
} else if (ctx->options & DHCPCD_LAUNCHER)
} else if (ctx->options & DHCPCD_LAUNCHER ||
((!(ctx->options & DHCPCD_DAEMONISE)) &&
ctx->options & DHCPCD_MASTER))
logdebugx("sandbox: %s", sandbox);
return 0;
}