mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Do not die on system built without CAPSICUM
This commit is contained in:
parent
0e6bc811e4
commit
861152d234
1 changed files with 2 additions and 1 deletions
|
|
@ -134,7 +134,8 @@ getargs(char *av[])
|
|||
else if ((ip->fp = fopen(p, "r")) == NULL) {
|
||||
err(1, "%s", p);
|
||||
}
|
||||
if (cap_rights_limit(fileno(ip->fp), &rights_ro) < 0)
|
||||
if (cap_rights_limit(fileno(ip->fp), &rights_ro) < 0
|
||||
&& errno != ENOSYS)
|
||||
err(1, "unable to limit rights on: %s", p);
|
||||
ip->pad = P;
|
||||
if (!ip->sepstring)
|
||||
|
|
|
|||
Loading…
Reference in a new issue