Restore the ability to set capenabled directly in syscalls.conf.

This fixes generation of cloudabi syscall tables broken in r340424.

Reviewed by:	kevans, emaste
MFC after:	3 days
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D21821
This commit is contained in:
Brooks Davis 2019-09-30 20:58:29 +00:00
parent 0bed9d03b4
commit 3a94552174

View File

@ -64,7 +64,9 @@ if [ -n "$2" ]; then
. "$2"
fi
if [ -r $capabilities_conf ]; then
if [ -n "$capenabled" ]; then
# do nothing
elif [ -r $capabilities_conf ]; then
capenabled=`egrep -v '^#|^$' $capabilities_conf`
capenabled=`echo $capenabled | sed 's/ /,/g'`
else