diff --git a/iptables.init b/iptables.init index 3d66f5e..1ef3dd4 100755 --- a/iptables.init +++ b/iptables.init @@ -41,11 +41,11 @@ IPTABLES_STATUS_NUMERIC="no" rmmod_r() { # Unload module with all referring modules. # At first all referring modules will be unloaded, then the module itself. - mod=$1 - ret=0 + local mod=$1 + local ret=0 # Get referring modules. - ref=`lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1` + local ref=`lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1` # recursive call for all referring module for i in $ref; do diff --git a/iptables.spec b/iptables.spec index 62e6423..96826af 100644 --- a/iptables.spec +++ b/iptables.spec @@ -4,13 +4,14 @@ Name: iptables Summary: Tools for managing Linux kernel packet filtering capabilities. Version: 1.2.8 -Release: 8.90.1 +Release: 8.90.5 Source: http://www.netfilter.org/%{name}-%{version}.tar.bz2 Source1: iptables.init Source2: iptables-config %if %{linux_header} Source3: netfilter-2.4.20.tar.gz %endif +Patch0: iptables-1.2.8-save_ports.patch Group: System Environment/Base URL: http://www.netfilter.org/ BuildRoot: %{_tmppath}/%{name}-buildroot @@ -62,6 +63,7 @@ cd include tar -zxf %{SOURCE3} cd .. %endif +%patch0 -p1 -b .save_ports # Put it to a reasonable place find . -type f -exec perl -pi -e "s,/usr/local,%{prefix},g" {} \; @@ -136,6 +138,10 @@ fi %endif %changelog +* Wed Sep 17 2003 Thomas Woerner 1.2.8-90.5 +- fixed wrong tests for ipv6 udp ports in save +- made variables in rmmod_r local + * Tue Jul 22 2003 Thomas Woerner 1.2.8-90.1 - fixed permission for init script