Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2018 18:01:36 +0000 (UTC)
From:      Mariusz Zaborski <oshogbo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r340377 - head/usr.bin/wc
Message-ID:  <201811121801.wACI1aUk066746@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811121801.wACI1aUk066746>