forked from extern/shorewall_code
Rename 'ALLOWUNKNOWNVARIABLES' to 'IGNOREUNKNOWNVARIABLES'
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
5da7db3d5f
commit
8a0abab4cc
@ -738,7 +738,7 @@ sub initialize( $;$$) {
|
||||
HELPERS => undef,
|
||||
AUTOHELPERS => undef,
|
||||
RESTORE_ROUTEMARKS => undef,
|
||||
ALLOWUNKNOWNVARIABLES => undef,
|
||||
IGNOREUNKNOWNVARIABLES => undef,
|
||||
#
|
||||
# Packet Disposition
|
||||
#
|
||||
@ -2659,7 +2659,7 @@ sub expand_variables( \$ ) {
|
||||
my $val;
|
||||
|
||||
if ( $var =~ /^\d+$/ ) {
|
||||
fatal_error "Undefined parameter (\$$var)" unless ( $config{ALLOWUNKNOWNVARIABLES} ||
|
||||
fatal_error "Undefined parameter (\$$var)" unless ( $config{IGNOREUNKNOWNVARIABLES} ||
|
||||
( defined $actparms{$var} &&
|
||||
( length( $var ) == 1 || $var !~ /^0/ ) ) );
|
||||
fatal_error "Undefined parameter (\$$var)" if ( ! defined $actparms{$var} ) || ( length( $var ) > 1 && $var =~ /^0/ );
|
||||
@ -2669,7 +2669,7 @@ sub expand_variables( \$ ) {
|
||||
} elsif ( exists $actparms{$var} ) {
|
||||
$val = $actparms{$var};
|
||||
} else {
|
||||
fatal_error "Undefined shell variable (\$$var)" unless $config{ALLOWUNKNOWNVARIABLES} || exists $config{$var};
|
||||
fatal_error "Undefined shell variable (\$$var)" unless $config{IGNOREUNKNOWNVARIABLES} || exists $config{$var};
|
||||
}
|
||||
|
||||
$val = '' unless defined $val;
|
||||
@ -4787,7 +4787,7 @@ sub get_configuration( $$$ ) {
|
||||
default_yes_no 'IPSET_WARNINGS' , 'Yes';
|
||||
default_yes_no 'AUTOHELPERS' , 'Yes';
|
||||
default_yes_no 'RESTORE_ROUTEMARKS' , 'Yes';
|
||||
default_yes_no 'ALLOWUNKNOWNVARIABLES' , 'Yes';
|
||||
default_yes_no 'IGNOREUNKNOWNVARIABLES' , 'Yes';
|
||||
|
||||
$config{IPSET} = '' if supplied $config{IPSET} && $config{IPSET} eq 'ipset';
|
||||
|
||||
|
@ -114,7 +114,7 @@ ADD_SNAT_ALIASES=No
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
ALLOWUNKNOWNVARIABLES=No
|
||||
IGNOREUNKNOWNVARIABLES=No
|
||||
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
@ -125,7 +125,7 @@ ADD_SNAT_ALIASES=No
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
ALLOWUNKNOWNVARIABLES=No
|
||||
IGNOREUNKNOWNVARIABLES=No
|
||||
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
@ -123,7 +123,7 @@ ADD_SNAT_ALIASES=No
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
ALLOWUNKNOWNVARIABLES=No
|
||||
IGNOREUNKNOWNVARIABLES=No
|
||||
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
@ -126,7 +126,7 @@ ADD_SNAT_ALIASES=No
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
ALLOWUNKNOWNVARIABLES=No
|
||||
IGNOREUNKNOWNVARIABLES=No
|
||||
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
@ -114,7 +114,7 @@ ADD_SNAT_ALIASES=No
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
ALLOWUNKNOWNVARIABLES=No
|
||||
IGNOREUNKNOWNVARIABLES=No
|
||||
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
@ -282,14 +282,14 @@
|
||||
|
||||
<varlistentry>
|
||||
<term><emphasis
|
||||
role="bold">ALLOWUNKNOWNVARIABLES=</emphasis>[<emphasis
|
||||
role="bold">IGNOREUNKNOWNVARIABLES=</emphasis>[<emphasis
|
||||
role="bold">Yes</emphasis>|<emphasis role="bold">No</emphasis>]</term>
|
||||
|
||||
<listitem>
|
||||
<para>Added in Shorewall 4.5.11. Normally, if an unknown shell
|
||||
variable is encountered in a configuration file (except in ?IF and
|
||||
?ELSIF directives), the compiler raises a fatal error. If
|
||||
ALLOWUNKNOWNVARIABLES is set to 'Yes', then such variables simply
|
||||
IGNOREUNKNOWNVARIABLES is set to 'Yes', then such variables simply
|
||||
expand to an empty string. Default is 'No'.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -109,7 +109,7 @@ ACCOUNTING_TABLE=filter
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
ALLOWUNKNOWNVARIABLES=No
|
||||
IGNOREUNKNOWNVARIABLES=No
|
||||
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
@ -109,7 +109,7 @@ ACCOUNTING_TABLE=filter
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
ALLOWUNKNOWNVARIABLES=No
|
||||
IGNOREUNKNOWNVARIABLES=No
|
||||
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
@ -109,7 +109,7 @@ ACCOUNTING_TABLE=filter
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
ALLOWUNKNOWNVARIABLES=No
|
||||
IGNOREUNKNOWNVARIABLES=No
|
||||
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
@ -109,7 +109,7 @@ ACCOUNTING_TABLE=filter
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
ALLOWUNKNOWNVARIABLES=No
|
||||
IGNOREUNKNOWNVARIABLES=No
|
||||
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
@ -109,7 +109,7 @@ ACCOUNTING_TABLE=filter
|
||||
|
||||
ADMINISABSENTMINDED=Yes
|
||||
|
||||
ALLOWUNKNOWNVARIABLES=No
|
||||
IGNOREUNKNOWNVARIABLES=No
|
||||
|
||||
AUTOCOMMENT=Yes
|
||||
|
||||
|
@ -219,14 +219,14 @@
|
||||
|
||||
<varlistentry>
|
||||
<term><emphasis
|
||||
role="bold">ALLOWUNKNOWNVARIABLES=</emphasis>[<emphasis
|
||||
role="bold">IGNOREUNKNOWNVARIABLES=</emphasis>[<emphasis
|
||||
role="bold">Yes</emphasis>|<emphasis role="bold">No</emphasis>]</term>
|
||||
|
||||
<listitem>
|
||||
<para>Added in Shorewall 4.5.11. Normally, if an unknown shell
|
||||
variable is encountered in a configuration file (except in ?IF and
|
||||
?ELSIF directives), the compiler raises a fatal error. If
|
||||
ALLOWUNKNOWNVARIABLES is set to 'Yes', then such variables simply
|
||||
IGNOREUNKNOWNVARIABLES is set to 'Yes', then such variables simply
|
||||
expand to an empty string. Default is 'No'.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
Loading…
Reference in New Issue
Block a user