forked from extern/shorewall_code
Ignore 'state' in the actions file with a warning
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
34c3828b7c
commit
741da14789
@ -2067,7 +2067,11 @@ sub process_actions() {
|
|||||||
if ( $options ne '-' ) {
|
if ( $options ne '-' ) {
|
||||||
for ( split_list( $options, 'option' ) ) {
|
for ( split_list( $options, 'option' ) ) {
|
||||||
if ( /^state=(NEW|ESTABLISHED|RELATED|INVALID|UNTRACKED)$/ ) {
|
if ( /^state=(NEW|ESTABLISHED|RELATED|INVALID|UNTRACKED)$/ ) {
|
||||||
$state = $1;
|
if ( $file eq 'actions.std' ) {
|
||||||
|
$state = $1;
|
||||||
|
} else {
|
||||||
|
warning_message( q(The 'state' option is ignored in the actions file) );
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
fatal_error "Invalid option ($_)" unless $options{$_};
|
fatal_error "Invalid option ($_)" unless $options{$_};
|
||||||
$opts |= $options{$_};
|
$opts |= $options{$_};
|
||||||
|
Loading…
Reference in New Issue
Block a user