Package: ferm
Version: 2.0.6-1
Severity: important
Tags: patch

ferm ignores the @post_hooks and @flush_hooks when generating a script with 
--shell 
displaying the rules with --lines.

The reason is an ommitted LINES to a print command in ferm.

The attached patch fixes the issue.

Best regards
Peter

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ferm depends on:
ii  debconf                       1.5.27     Debian configuration management sy
ii  iptables                      1.4.4-2    administration tools for packet fi
ii  lsb-base                      3.2-23     Linux Standard Base 3.2 init scrip
ii  perl                          5.10.0-25  Larry Wall's Practical Extraction 

Versions of packages ferm recommends:
ii  libnet-dns-perl               0.65-1     Perform DNS queries from a Perl sc

ferm suggests no packages.

-- debconf information:
* ferm/enable: true
--- ferm
+++ ferm
@@ -542,7 +542,7 @@
 }
 
 foreach my $cmd (@post_hooks, @flush_hooks) {
-    print "$cmd\n" if $option{lines};
+    print LINES "$cmd\n" if $option{lines};
     system($cmd) unless $option{noexec};
 }
 

Reply via email to