mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-02 22:54:52 +00:00
cat: Missed a couple.
MFC after: 3 days Sponsored by: Klara, Inc.
This commit is contained in:
parent
c6f9df7064
commit
ad4f3bdf73
|
@ -125,7 +125,7 @@ init_casper_net(cap_channel_t *casper)
|
|||
familylimit = AF_LOCAL;
|
||||
cap_net_limit_name2addr_family(limit, &familylimit, 1);
|
||||
|
||||
if (cap_net_limit(limit) < 0)
|
||||
if (cap_net_limit(limit) != 0)
|
||||
err(EXIT_FAILURE, "unable to apply limits");
|
||||
}
|
||||
#endif
|
||||
|
@ -206,7 +206,7 @@ main(int argc, char *argv[])
|
|||
|
||||
caph_cache_catpages();
|
||||
|
||||
if (caph_enter_casper() < 0)
|
||||
if (caph_enter_casper() != 0)
|
||||
err(EXIT_FAILURE, "capsicum");
|
||||
|
||||
if (bflag || eflag || nflag || sflag || tflag || vflag)
|
||||
|
@ -471,7 +471,7 @@ udom_open(const char *path, int flags)
|
|||
errno = serrno;
|
||||
return (-1);
|
||||
}
|
||||
if (caph_rights_limit(fd, &rights) < 0) {
|
||||
if (caph_rights_limit(fd, &rights) != 0) {
|
||||
serrno = errno;
|
||||
close(fd);
|
||||
freeaddrinfo(res0);
|
||||
|
|
Loading…
Reference in a new issue