]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
log: Allow logopen to be called without logclose
authorRoy Marples <roy@marples.name>
Fri, 30 Oct 2020 15:16:02 +0000 (15:16 +0000)
committerRoy Marples <roy@marples.name>
Fri, 30 Oct 2020 15:16:02 +0000 (15:16 +0000)
commitb0525d9d351a1ea9f473f850af2ec4f19f811bc7
tree5b16a6072992a66a617ce831ad2eb62e4e656406
parentc963b6033c4bf32c4c72c725f05a0374d32bd370
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.
src/dhcpcd.c
src/logerr.c
src/logerr.h
src/privsep-root.c