svn commit: r334965 - head/sys/kern
Ed Maste
emaste at FreeBSD.org
Mon Jun 11 18:57:41 UTC 2018
Author: emaste
Date: Mon Jun 11 18:57:40 2018
New Revision: 334965
URL: https://svnweb.freebsd.org/changeset/base/334965
Log:
makesyscalls: simplify capenabled pipeline
Replace cat + 2x grep with one grep.
Sponsored by: Turing Robotic Industries
Modified:
head/sys/kern/makesyscalls.sh
Modified: head/sys/kern/makesyscalls.sh
==============================================================================
--- head/sys/kern/makesyscalls.sh Mon Jun 11 18:44:56 2018 (r334964)
+++ head/sys/kern/makesyscalls.sh Mon Jun 11 18:57:40 2018 (r334965)
@@ -47,7 +47,7 @@ systracetmp="systrace.$$"
systraceret="systraceret.$$"
if [ -r capabilities.conf ]; then
- capenabled=`cat capabilities.conf | grep -v "^#" | grep -v "^$"`
+ capenabled=`egrep -v '^#|^$' capabilities.conf`
capenabled=`echo $capenabled | sed 's/ /,/g'`
else
capenabled=""
More information about the svn-src-head
mailing list