Mercurial > hg > dhcpcd
changeset 5515:652b46c01097 draft
privsep: Minor correction to prior logic
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sun, 11 Oct 2020 08:47:31 +0100 |
| parents | cf82a4ba8f27 |
| children | 22b88499388a |
| files | src/privsep.c |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/privsep.c Sat Oct 10 17:54:03 2020 +0100 +++ b/src/privsep.c Sun Oct 11 08:47:31 2020 +0100 @@ -168,7 +168,7 @@ * or redirecting stderr to a file. */ if (ctx->logfile == NULL && (ctx->options & DHCPCD_STARTED || - (ctx->stderr_valid && isatty(STDERR_FILENO) == 1))) + !ctx->stderr_valid || isatty(STDERR_FILENO) == 1)) { if (setrlimit(RLIMIT_FSIZE, &rzero) == -1) logerr("setrlimit RLIMIT_FSIZE");
