diff --git a/Shorewall-common/changelog.txt b/Shorewall-common/changelog.txt index 52ed6f665..aec9bb5ff 100644 --- a/Shorewall-common/changelog.txt +++ b/Shorewall-common/changelog.txt @@ -14,4 +14,6 @@ Changes in Shorewall 4.2.1 7) Take advantage --ctorigdstport +8) Fix syntax error in 'export' + Initial release of Shorewall 4.2.0. diff --git a/Shorewall-common/releasenotes.txt b/Shorewall-common/releasenotes.txt index b93c0590c..f061312f8 100644 --- a/Shorewall-common/releasenotes.txt +++ b/Shorewall-common/releasenotes.txt @@ -94,7 +94,11 @@ Problems corrected in Shorewall 4.2.1 4) The Shorewall-perl implementation of the LENGTH column in /etc/shorewall/tcrules was incomplete with the result that - all LENGTH rules matched. Thanks to Lennart Sorensen for the patch. + all LENGTH rules matched. Thanks to Lennart Sorensen for the patch. + +5) The 'export' command no longer fails with the error: + + /sbin/shorewall: 1413: Syntax error: "(" unexpected (expecting "fi") Other changes in Shorewall 4.2.1 diff --git a/Shorewall-common/shorewall b/Shorewall-common/shorewall index 1735cd5b1..1d93b47ab 100755 --- a/Shorewall-common/shorewall +++ b/Shorewall-common/shorewall @@ -1410,7 +1410,7 @@ export_command() # $* = original arguments less the command. echo "Copying $file and ${file}.conf to ${target#*@}..." && \ scp $directory/firewall $directory/firewall.conf $target then - save=(find_file save); + save=$(find_file save); [ -f $save ] && progress_message3 "Copying $save to ${target#*}..." && rcp_command $save $target