cat: Missed a couple.

MFC after:	3 days
Sponsored by:	Klara, Inc.
This commit is contained in:
Dag-Erling Smørgrav 2024-05-10 13:04:56 +02:00
parent c6f9df7064
commit ad4f3bdf73
1 changed files with 3 additions and 3 deletions

View File

@ -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);