mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
libcasper: do not fail if Capsicum is not avilable
Casper service can be also used on the kernels without Capsicum support. Reported by: sbruno Tested by: sbruno
This commit is contained in:
parent
e7a0ad24b0
commit
77ebcc05ea
1 changed files with 1 additions and 1 deletions
|
|
@ -363,7 +363,7 @@ open_file(const char *name)
|
|||
return (-1);
|
||||
|
||||
if (caprightsp != NULL) {
|
||||
if (cap_rights_limit(fd, caprightsp) < 0) {
|
||||
if (cap_rights_limit(fd, caprightsp) < 0 && errno != ENOSYS) {
|
||||
serrno = errno;
|
||||
close(fd);
|
||||
errno = serrno;
|
||||
|
|
|
|||
Loading…
Reference in a new issue