diff options
author | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2018-11-12 18:01:36 +0000 |
---|---|---|
committer | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2018-11-12 18:01:36 +0000 |
commit | c71292ea35140dc8f2744ff6da9e3d12760e30e1 (patch) | |
tree | b775a8917729f09587715754156340b4c9ddb585 /usr.bin/wc/wc.c | |
parent | 3824f650f009c93cc1c51e94d025c06eb5f6c9f7 (diff) |
wc: We should sandbox wc only if Capers is available.
Notes
Notes:
svn path=/head/; revision=340377
Diffstat (limited to 'usr.bin/wc/wc.c')
-rw-r--r-- | usr.bin/wc/wc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c index 196d6f488a81..265ede255dff 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); |