diff options
author | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2018-11-04 19:24:49 +0000 |
---|---|---|
committer | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2018-11-04 19:24:49 +0000 |
commit | 377421df9690cddad7f0c8cba84bd392e62a3b6c (patch) | |
tree | 8abd5aa51822658825b9055a2be48f3f3c0b7bcb /usr.bin/tee | |
parent | eda66948fe3eb3134f19c97689f9ca55abce8565 (diff) | |
download | src-377421df9690cddad7f0c8cba84bd392e62a3b6c.tar.gz src-377421df9690cddad7f0c8cba84bd392e62a3b6c.zip |
capsicum: use a new capsicum helpers in tools
Use caph_{rights,ioctls,fcntls}_limit to simplify the code.
Notes
Notes:
svn path=/head/; revision=340138
Diffstat (limited to 'usr.bin/tee')
-rw-r--r-- | usr.bin/tee/tee.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tee/tee.c b/usr.bin/tee/tee.c index b6d438afd96d..b55aa84d2f63 100644 --- a/usr.bin/tee/tee.c +++ b/usr.bin/tee/tee.c @@ -147,7 +147,7 @@ add(int fd, const char *name) err(EXIT_FAILURE, "unable to limit stdout"); } else { cap_rights_init(&rights, CAP_WRITE, CAP_FSTAT); - if (cap_rights_limit(fd, &rights) < 0 && errno != ENOSYS) + if (caph_rights_limit(fd, &rights) < 0) err(EXIT_FAILURE, "unable to limit rights"); } |