Use caph_enter_casper() in ping(8).

Reported by:	oshogbo
MFC with:	r341837
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
markj 2018-12-18 16:47:03 +00:00
parent a3c153e5af
commit f3462a1719

View File

@ -708,7 +708,7 @@ main(int argc, char *const *argv)
* We must connect(2) our socket before this point.
*/
caph_cache_catpages();
if (caph_enter() < 0)
if (caph_enter_casper() < 0)
err(1, "cap_enter");
cap_rights_init(&rights, CAP_RECV, CAP_EVENT, CAP_SETSOCKOPT);