Ignore 'state' in the actions file with a warning

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-03-14 15:46:29 -07:00
parent 34c3828b7c
commit 741da14789

View File

@ -2067,7 +2067,11 @@ sub process_actions() {
if ( $options ne '-' ) {
for ( split_list( $options, 'option' ) ) {
if ( /^state=(NEW|ESTABLISHED|RELATED|INVALID|UNTRACKED)$/ ) {
if ( $file eq 'actions.std' ) {
$state = $1;
} else {
warning_message( q(The 'state' option is ignored in the actions file) );
}
} else {
fatal_error "Invalid option ($_)" unless $options{$_};
$opts |= $options{$_};