diff options
| author | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2018-06-19 23:43:14 +0000 |
|---|---|---|
| committer | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2018-06-19 23:43:14 +0000 |
| commit | 7672a0148f79063eac8f8e0beb0db5350d02d5d4 (patch) | |
| tree | 413e973544ce3e0e8cc69352f5f5824b3a8821d5 /sbin/dhclient | |
| parent | d18e2bca4b12aba1820c63c125e409418007db49 (diff) | |
Notes
Diffstat (limited to 'sbin/dhclient')
| -rw-r--r-- | sbin/dhclient/dhclient.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 7150a09164999..37fd46abbba1a 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -64,6 +64,8 @@ __FBSDID("$FreeBSD$"); #include <sys/capsicum.h> #include <sys/endian.h> +#include <capsicum_helpers.h> + #include <net80211/ieee80211_freebsd.h> #ifndef _PATH_VAREMPTY @@ -539,7 +541,7 @@ main(int argc, char *argv[]) setproctitle("%s", ifi->name); - if (CASPER_SUPPORT && cap_enter() < 0 && errno != ENOSYS) + if (caph_enter_casper() < 0) error("can't enter capability mode: %m"); if (immediate_daemon) |
