summaryrefslogtreecommitdiff
path: root/usr.bin/wc
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2018-11-12 18:01:36 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2018-11-12 18:01:36 +0000
commitc71292ea35140dc8f2744ff6da9e3d12760e30e1 (patch)
treeb775a8917729f09587715754156340b4c9ddb585 /usr.bin/wc
parent3824f650f009c93cc1c51e94d025c06eb5f6c9f7 (diff)
downloadsrc-test-c71292ea35140dc8f2744ff6da9e3d12760e30e1.tar.gz
src-test-c71292ea35140dc8f2744ff6da9e3d12760e30e1.zip
wc: We should sandbox wc only if Capers is available.
Notes
Notes: svn path=/head/; revision=340377
Diffstat (limited to 'usr.bin/wc')
-rw-r--r--usr.bin/wc/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c
index 196d6f488a815..265ede255dff7 100644
--- a/usr.bin/wc/wc.c
+++ b/usr.bin/wc/wc.c
@@ -146,7 +146,7 @@ main(int argc, char *argv[])
exit(1);
}
- if (caph_enter() < 0) {
+ if (caph_enter_with_casper() < 0) {
xo_warn("Unable to enter capability mode");
fileargs_free(fa);
exit(1);