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:
parent
f6e5319550
commit
af32978987
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user