mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
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 a new issue