forked from extern/shorewall_code
Implement read_action_param()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
f278d05637
commit
8b6a7a7053
@ -101,6 +101,7 @@ our %EXPORT_TAGS = ( internal => [ qw( create_temp_script
|
||||
push_action_params
|
||||
pop_action_params
|
||||
default_action_params
|
||||
read_action_param
|
||||
read_a_line
|
||||
validate_level
|
||||
which
|
||||
@ -1819,6 +1820,13 @@ sub default_action_params {
|
||||
}
|
||||
}
|
||||
|
||||
sub read_action_param( $ ) {
|
||||
my $i = shift;
|
||||
|
||||
fatal_error "Parameter numbers must be numeric" unless $i =~ /^\d+$/;
|
||||
$actparams{$i};
|
||||
}
|
||||
|
||||
#
|
||||
# Read a line from the current include stack.
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user