Use the non-fatal error reporting feature for missing capabilities

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-08-24 06:25:29 -07:00
parent e17010018c
commit 1067f8a9bb

View File

@ -3778,7 +3778,10 @@ sub determine_capabilities() {
sub require_capability( $$$ ) {
my ( $capability, $description, $singular ) = @_;
fatal_error "$description require${singular} $capdesc{$capability} in your kernel and iptables" unless have_capability $capability;
unless ( have_capability $capability ) {
nonfatal_error "$description require${singular} $capdesc{$capability} in your kernel and iptables";
$capabilities{$capability} = 1;
}
}
#