diff --git a/Shorewall/Perl/Shorewall/Compiler.pm b/Shorewall/Perl/Shorewall/Compiler.pm index 18ec61e6c..ac4e1e9af 100644 --- a/Shorewall/Perl/Shorewall/Compiler.pm +++ b/Shorewall/Perl/Shorewall/Compiler.pm @@ -213,8 +213,7 @@ sub generate_script_2() { emit ( '[ -n "${COMMAND:=restart}" ]', '[ -n "${VERBOSE:=0}" ]', - qq([ -n "\${RESTOREFILE:=$config{RESTOREFILE}}" ]), - '[ -n "$LOGFORMAT" ] || LOGFORMAT="Shorewall:%s:%s:"' ); + qq([ -n "\${RESTOREFILE:=$config{RESTOREFILE}}" ]) ); emit ( qq(VERSION="$globals{VERSION}") ) unless $test; diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index be5e8ef9a..5a62a797a 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -188,8 +188,7 @@ our %config; # # Config options and global settings that are to be copied to output script # -our @propagateconfig = qw/ DISABLE_IPV6 MODULESDIR MODULE_SUFFIX LOGFORMAT SUBSYSLOCK LOCKFILE /; -our @propagateenv = qw/ LOGLIMIT LOGTAGONLY LOGRULENUMBERS /; +our @propagateconfig = qw/ DISABLE_IPV6 MODULESDIR MODULE_SUFFIX SUBSYSLOCK /; # # From parsing the capabilities file or detecting capabilities # @@ -2539,11 +2538,6 @@ sub propagateconfig() { my $value = $config{$option} || ''; emit "$option=\"$value\""; } - - for my $option ( @propagateenv ) { - my $value = $globals{$option} || ''; - emit "$option=\"$value\""; - } } # diff --git a/Shorewall/changelog.txt b/Shorewall/changelog.txt index 9469f3186..50878da1c 100644 --- a/Shorewall/changelog.txt +++ b/Shorewall/changelog.txt @@ -12,6 +12,10 @@ Changes in Shorewall 4.4.3 6) Fix nested zones. +7) Move all function declarations from prog.footer to prog.header + +8) Remove superfluous variables from generated script + Changes in Shorewall 4.4.2 1) BUGFIX: Correct detection of Persistent SNAT support