Fix restore if 'set --' used in an extension script

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3588 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-02-26 17:10:16 +00:00
parent f2c4fbaccd
commit f3b86ee2c5
3 changed files with 8 additions and 4 deletions

View File

@ -96,3 +96,6 @@ Changes in 3.1.x.
3.1.9
41) Fix Provider route generation when a specific gateway is specified.
42) Be sure that restore file name is preserved regardless of 'set --' in
define_firewall().)

View File

@ -8586,6 +8586,7 @@ __EOF__
# Start/Restart/Reload the firewall
#
define_firewall() {
local restore_file=\$1
__EOF__
INDENT=" "
@ -8686,7 +8687,7 @@ __EOF__
cat >&3 << __EOF__
if [ \$COMMAND = restore ]; then
iptables-restore < \$1
iptables-restore < \$restore_file
fi
__EOF__

View File

@ -32,6 +32,9 @@ Problems Corrected in 3.1.9
1) Route generation is now correct when a specific gateway IP address is
given in the GATEWAY column of the providers file.
2) If any action has an associated extension script (like the 'Limit'
standard action) then 'shorewall restore' would fail.
Other changes in 3.1.9
None.
@ -328,6 +331,3 @@ New Features:
07:09:05 Restarting Shorewall....
07:09:08 done.
gateway:/etc/shorewall #