freebsd-dev/sbin/dhclient
Mariusz Zaborski 6789a8b559 dhclient(8) should not close stdio using daemon(3) function.
dhclient(8) is chrooted so opening /dev/null always will fail.
In capability world this is also annoying because we getting error that
open(2) is not permitted in Capsicum. dhclient(8) is closing stdio by
precaching fd to /dev/null before chroot.
This is done few lines below daemon(3) function so let's not try to do that
in daemon(3) function.

Reviewed by:	cem@
Differential Revision:	https://reviews.freebsd.org/D12826
2017-11-12 08:54:23 +00:00
..
tests DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
alloc.c
bpf.c Remove duplicated includes. 2014-06-26 13:57:44 +00:00
clparse.c sbin/dhclient: fix vendor storage leak in parse_option_decl(..) 2017-03-13 17:45:00 +00:00
conflex.c dhclient(1): correct obvious mismatch in get_char(). 2016-06-03 03:40:39 +00:00
convert.c
dhclient-script
dhclient-script.8 use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
dhclient.8 use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
dhclient.c dhclient(8) should not close stdio using daemon(3) function. 2017-11-12 08:54:23 +00:00
dhclient.conf
dhclient.conf.5 mdoc: improvements to SEE ALSO. 2014-12-27 08:22:58 +00:00
dhclient.leases.5 mdoc: improvements to SEE ALSO. 2014-12-27 08:22:58 +00:00
dhcp-options.5 use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
dhcp.h
dhcpd.h Use syslog service in dhclient(8). 2017-11-12 08:42:43 +00:00
dhctoken.h
dispatch.c Use syslog service in dhclient(8). 2017-11-12 08:42:43 +00:00
errwarn.c Use syslog service in dhclient(8). 2017-11-12 08:42:43 +00:00
hash.c
inet.c
Makefile Use syslog service in dhclient(8). 2017-11-12 08:42:43 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
options.c Fix the output of very large rebind, renew and lease time options in 2017-05-07 21:11:28 +00:00
packet.c Since r270929 raw sockets expect network byte order. 2014-09-11 05:48:39 +00:00
parse.c parse.c parse_string 2017-05-31 21:31:15 +00:00
privsep.c dhclient: add support for interface-mtu (26) 2016-09-02 21:14:29 +00:00
privsep.h dhclient: add support for interface-mtu (26) 2016-09-02 21:14:29 +00:00
tables.c dhclient(8): Enable numbered user class ID option 2016-09-20 19:21:41 +00:00
tree.c
tree.h