mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-23 19:21:21 +02:00
Correct regular expression in process_shorewall_conf()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
dedbbf2292
commit
ea038bcecb
@ -3061,7 +3061,7 @@ sub process_shorewall_conf( $$ ) {
|
|||||||
#
|
#
|
||||||
for ( values %config ) {
|
for ( values %config ) {
|
||||||
if ( supplied $_ ) {
|
if ( supplied $_ ) {
|
||||||
expand_variables( $_ ) unless /$'(.+)'$/;
|
expand_variables( $_ ) unless /^'(.+)'$/;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3085,7 +3085,8 @@ sub read_capabilities() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $capabilities{CAPVERSION} ) {
|
if ( $capabilities{CAPVERSION} ) {
|
||||||
warning_message "Your capabilities file is out of date -- it does not contain all of the capabilities defined by $Product version $globals{VERSION}" unless $capabilities{CAPVERSION} >= $globals{CAPVERSION};
|
warning_message "Your capabilities file is out of date -- it does not contain all of the capabilities defined by $Product version $globals{VERSION}"
|
||||||
|
unless $capabilities{CAPVERSION} >= $globals{CAPVERSION};
|
||||||
} else {
|
} else {
|
||||||
warning_message "Your capabilities file may not contain all of the capabilities defined by $Product version $globals{VERSION}";
|
warning_message "Your capabilities file may not contain all of the capabilities defined by $Product version $globals{VERSION}";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user