Rework -L logic to use the idiom used in handling the leases file.
authorkrw <krw@openbsd.org>
Mon, 10 Apr 2017 21:47:44 +0000 (21:47 +0000)
committerkrw <krw@openbsd.org>
Mon, 10 Apr 2017 21:47:44 +0000 (21:47 +0000)
commit1e3db11a39e6337ecc49dae7673954ca5cfa533c
treecc29f943f70bdc39da54d132dd8f4bfeaed3f3df
parentded909db2702a03a081f7e94d1d8d19f670e51aa
Rework -L logic to use the idiom used in handling the leases file.
i.e. open FILE during program set up and use the FILE created for
the rest of the program lifetime after dropping privilege and
pledge()'ing. No need for passing messages to the priv process.

Tweak lease file handling a bit in passing.

Monitoring the -L file with external programs like sysutils/entr
still works.

Looks good to sthen@.
sbin/dhclient/dhclient.c
sbin/dhclient/privsep.c
sbin/dhclient/privsep.h