Came across this after I filed my bugreport ...

Gerald Turner wrote:

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

bashism is not the right word for it.

>   $ read MAX < /proc/sys/net/ipv4/netfilter/ip_conntrack_max
> 
>   # bash:
>   $ echo $MAX
>   65536
> 
>   # dash (and zsh too!):
>   $ echo $MAX
>   6

The difference is: bash reads buffers, dash (and also probably zsh)
reads single bytes, something the /proc/sys/ interface doesn't like.

Personally, I'd like to call that a kernel bug while other just tend
to say that procfs isn't fully POSIX compliant and therefore it's SEP.

There's a bugreport against dash[1], and mine against the kernel[2].
However, I doubt any of these will have any effect soon.

    Christoph

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595063
[2] https://bugzilla.kernel.org/show_bug.cgi?id=19182

Attachment: signature.asc
Description: Digital signature

Reply via email to