Hello, looks like the bug in fw_conntrack is a bashism with the use of
the shell built-in read.

  $ read MAX < /proc/sys/net/ipv4/netfilter/ip_conntrack_max

  # bash:
  $ echo $MAX
  65536

  # dash (and zsh too!):
  $ echo $MAX
  6

Surprisingly I couldn't find any info on 'read' behavior with stdin,
perhaps this should be documented on https://wiki.ubuntu.com/DashAsBinSh
which has some other 'read' related bits.

Fix was to modify these lines:

        if [ -f /proc/sys/net/ipv4/ip_conntrack_max ] ; then
            read MAX </proc/sys/net/ipv4/ip_conntrack_max
        elif [ -f /proc/sys/net/ipv4/netfilter/ip_conntrack_max ]; then
             read MAX < /proc/sys/net/ipv4/netfilter/ip_conntrack_max
        fi

With:

        if [ -f /proc/sys/net/ipv4/ip_conntrack_max ] ; then
            MAX=$(cat /proc/sys/net/ipv4/ip_conntrack_max)
        elif [ -f /proc/sys/net/ipv4/netfilter/ip_conntrack_max ]; then
             MAX=$(cat /proc/sys/net/ipv4/netfilter/ip_conntrack_max)
        fi

-- 
Gerald Turner  Email: gtur...@unzane.com  JID: gtur...@jabber.unzane.com
GPG: 0xFA8CD6D5  21D9 B2E8 7FE7 F19E 5F7D  4D0C 3FA0 810F FA8C D6D5



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