Mercurial > hg > dhcpcd
diff src/dhcpcd.c @ 5530:226b850d158d draft
Fix compile without various defines
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Fri, 30 Oct 2020 22:18:57 +0000 |
| parents | 071a9ea18363 |
| children | 4492d1d88fdd |
line wrap: on
line diff
--- a/src/dhcpcd.c Fri Oct 30 16:13:49 2020 +0000 +++ b/src/dhcpcd.c Fri Oct 30 22:18:57 2020 +0000 @@ -1422,13 +1422,15 @@ return; case SIGUSR2: loginfox(sigmsg, "SIGUSR2", "reopening log"); +#ifdef PRIVSEP if (IN_PRIVSEP(ctx)) { if (ps_root_logreopen(ctx) == -1) logerr("ps_root_logreopen"); - } else { - if (logopen(ctx->logfile) == -1) - logerr("logopen"); + return; } +#endif + if (logopen(ctx->logfile) == -1) + logerr("logopen"); return; case SIGCHLD: while (waitpid(-1, NULL, WNOHANG) > 0)
