mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 12:14:32 +01:00
Use the correct filename in ?IF/?ELSIF exec call.
- Also extend a comment in the TC module Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
74f831a73e
commit
a5b637b2a7
@ -1714,7 +1714,7 @@ sub evaluate_expression( $$$ ) {
|
|||||||
$expression = join( '', $first, $val, $rest );
|
$expression = join( '', $first, $val, $rest );
|
||||||
}
|
}
|
||||||
|
|
||||||
my $val = eval qq(package Shorewall::User;\nuse strict;\n# line $linenumber "$currentfilename"\n$expression);
|
my $val = eval qq(package Shorewall::User;\nuse strict;\n# line $linenumber "$filename"\n$expression);
|
||||||
|
|
||||||
unless ( $val ) {
|
unless ( $val ) {
|
||||||
cond_error( "Couldn't parse expression: $@" , $filename, $linenumber ) if $@;
|
cond_error( "Couldn't parse expression: $@" , $filename, $linenumber ) if $@;
|
||||||
|
@ -2009,7 +2009,7 @@ sub process_traffic_shaping() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Validate the TC configuration storing basic information in %tcdevices and %tcdevices
|
# Validate the TC configuration storing basic information in %tcdevices and %tcclasses (complex TC only)
|
||||||
#
|
#
|
||||||
sub process_tc() {
|
sub process_tc() {
|
||||||
if ( $config{TC_ENABLED} eq 'Internal' || $config{TC_ENABLED} eq 'Shared' ) {
|
if ( $config{TC_ENABLED} eq 'Internal' || $config{TC_ENABLED} eq 'Shared' ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user