From 0b8945da8e1a1bf21fd115448d961153fa965ccc 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 8ce5132f6..c8e09b323 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -3689,6 +3689,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;