Take reyk's imsg resolv.conf improvements of a while ago to their
authorkrw <krw@openbsd.org>
Fri, 23 Jun 2017 15:40:56 +0000 (15:40 +0000)
committerkrw <krw@openbsd.org>
Fri, 23 Jun 2017 15:40:56 +0000 (15:40 +0000)
commitc4d471e41817a7e0935988be20161a406ca26741
tree7dd3c481a0bf8e69cf303dd279931fa1ac4c6bb6
parentb846cb6cccfba9caf5d45f1a96b6f65dd3640a4f
Take reyk's imsg resolv.conf improvements of a while ago to their
logical conclusion.

Nuke _PATH_RESOLV_CONF since the value is only meant to be
known inside priv_write_resolv_conf(). Just use a local const char *.

Bring priv_write_resolv_conf() into line with other priv_ functions
invoked from the dispatch loop. i.e. don't pass it the imsg, just pass
a pointer to the data and a size after ensuring there is data to pass.
sbin/dhclient/dhcpd.h
sbin/dhclient/kroute.c
sbin/dhclient/privsep.c
sbin/dhclient/privsep.h