aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/indent/indent.c
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2018-06-19 23:43:14 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2018-06-19 23:43:14 +0000
commit7672a0148f79063eac8f8e0beb0db5350d02d5d4 (patch)
tree413e973544ce3e0e8cc69352f5f5824b3a8821d5 /usr.bin/indent/indent.c
parentd18e2bca4b12aba1820c63c125e409418007db49 (diff)
downloadsrc-7672a0148f79063eac8f8e0beb0db5350d02d5d4.tar.gz
src-7672a0148f79063eac8f8e0beb0db5350d02d5d4.zip
Notes
Diffstat (limited to 'usr.bin/indent/indent.c')
-rw-r--r--usr.bin/indent/indent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c
index dab0f2597d9b..03e557ee807b 100644
--- a/usr.bin/indent/indent.c
+++ b/usr.bin/indent/indent.c
@@ -46,6 +46,7 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/capsicum.h>
+#include <capsicum_helpers.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
@@ -248,7 +249,7 @@ main(int argc, char **argv)
cap_rights_init(&rights, CAP_FSTAT, CAP_READ);
if (cap_rights_limit(fileno(input), &rights) < 0 && errno != ENOSYS)
err(EXIT_FAILURE, "unable to limit rights for %s", in_name);
- if (cap_enter() < 0 && errno != ENOSYS)
+ if (caph_enter() < 0)
err(EXIT_FAILURE, "unable to enter capability mode");
if (opt.com_ind <= 1)