logger: fix builds without casper

We can enter capability mode only when Casper is available in
the system.

Reported by:	mjg@
MFC after:	1 week
This commit is contained in:
Mariusz Zaborski 2022-10-19 16:00:07 +02:00
parent f6e5319550
commit af32978987

View file

@ -182,7 +182,7 @@ main(int argc, char *argv[])
caph_cache_catpages();
caph_cache_tzdata();
if (nsock == 0) {
if (caph_enter() < 0)
if (caph_enter_casper() < 0)
err(1, "Unable to enter capability mode");
}
capsyslog = cap_service_open(capcas, "system.syslog");