Fix syntax error in export command executor

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8797 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-10-24 14:50:23 +00:00
parent a3c49402e2
commit 9782bef71e
3 changed files with 8 additions and 2 deletions

View File

@ -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.

View File

@ -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

View File

@ -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