mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-18 20:30:43 +01:00
Use the non-fatal error reporting feature for missing capabilities
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e17010018c
commit
1067f8a9bb
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user