mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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