From ce861dd0a3c479bc28dc99398673e752b58ea15e Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 13 Mar 2017 10:20:15 -0700 Subject: [PATCH] Correctly handle expansion of option names Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Config.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index b70db0715..e68f068de 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -3667,6 +3667,7 @@ sub expand_variables( \$ ) { $usedcaller = USEDCALLER if $var eq 'caller'; } else { fatal_error "Undefined shell variable (\$$var)" unless $config{IGNOREUNKNOWNVARIABLES} || exists $config{$var}; + $val = $config{$var}; } $val = '' unless defined $val;