svn commit: r340377 - head/usr.bin/wc

Mariusz Zaborski oshogbo at FreeBSD.org
Mon Nov 12 18:01:37 UTC 2018


Author: oshogbo
Date: Mon Nov 12 18:01:36 2018
New Revision: 340377
URL: https://svnweb.freebsd.org/changeset/base/340377

Log:
  wc: We should sandbox wc only if Capers is available.

Modified:
  head/usr.bin/wc/wc.c

Modified: head/usr.bin/wc/wc.c
==============================================================================
--- head/usr.bin/wc/wc.c	Mon Nov 12 17:59:15 2018	(r340376)
+++ head/usr.bin/wc/wc.c	Mon Nov 12 18:01:36 2018	(r340377)
@@ -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);


More information about the svn-src-head mailing list