diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 05542607d..8ce5132f6 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -5368,8 +5368,12 @@ sub update_config_file( $ ) { } } - - $val = conditional_quote $val; + if ( supplied $val ) { + # + # Log LEVEL and DEFAULT settings often contain parens + # + $val = ($var =~ /(?:LEVEL|DEFAULT)$/) ? qq("$val") : conditional_quote $val; + } $_ = "$var=$val\n"; }