summaryrefslogtreecommitdiffstats
path: root/src/privsep-root.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-10-30 15:16:02 +0000
committerRoy Marples <roy@marples.name>2020-10-30 15:16:02 +0000
commitb0525d9d351a1ea9f473f850af2ec4f19f811bc7 (patch)
tree5b16a6072992a66a617ce831ad2eb62e4e656406 /src/privsep-root.c
parentc963b6033c4bf32c4c72c725f05a0374d32bd370 (diff)
downloaddhcpcd-b0525d9d351a1ea9f473f850af2ec4f19f811bc7.tar.xz
log: Allow logopen to be called without logclose
logclose is meant to free resources. On Linux this means that _log_prog is also free'd and once in the chroot we cannot work it out again. As such allow logopen to close what it needs to so that reopening works.
Diffstat (limited to 'src/privsep-root.c')
-rw-r--r--src/privsep-root.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/privsep-root.c b/src/privsep-root.c
index afe9c8f6..70c6cf22 100644
--- a/src/privsep-root.c
+++ b/src/privsep-root.c
@@ -562,7 +562,6 @@ ps_root_recvmsgcb(void *arg, struct ps_msghdr *psm, struct msghdr *msg)
}
break;
case PS_LOGREOPEN:
- logclose();
err = logopen(ctx->logfile);
break;
#ifdef AUTH