Package: ferm
Version: 2.1.1-2
Severity: normal

Hi there!

Ferm fails to parse

@def &foo() = {
    domain (ip ip6) table filter chain FOO ACCEPT;
}
&foo();


with the following error message:

Error in foo.ferm line 2:
    ( 
        ip ip6 
    ) 
    table filter chain FOO ACCEPT ; 
    <--
Missing "}" at end of file



Which is kinda confusing and not pointing to the real problem (even
worse, if you call &foo much later, it points to a completely wrong
line...).

I'd expect it to work as
@def &foo() = {
    domain ip6 table filter chain FOO ACCEPT;
    domain ip table filter chain FOO ACCEPT;
}
&foo();

just works well:

# Generated by ferm 2.1.1 on Mon Dec 17 23:59:11 2012
*filter
:FOO - [0:0]
-A FOO --jump ACCEPT
COMMIT
# Generated by ferm 2.1.1 on Mon Dec 17 23:59:11 2012
*filter
:FOO - [0:0]
-A FOO --jump ACCEPT
COMMIT


Cheers,

Bernd




-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

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

Versions of packages ferm depends on:
ii  debconf   1.5.46
ii  iptables  1.4.14-3
ii  lsb-base  4.1+Debian7
ii  perl      5.14.2-13

Versions of packages ferm recommends:
ii  libnet-dns-perl  0.68-1.1

ferm suggests no packages.

-- Configuration Files:
/etc/default/ferm changed [not included]
/etc/ferm/ferm.conf [Errno 13] Permission denied: u'/etc/ferm/ferm.conf'

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to