Brian J. Murrell wrote:
> On Thu, 2007-12-20 at 12:22 -0800, Tom Eastep wrote:
>> What does "[ $foo = 0 ]" do?
> 
> # [ $foo = 0 ]
> 
> and just to evidence that we are still in busybox's /bin/sh and that
> $foo has our testing value in it:
> 
> # echo $foo
> 2953838592
> # eval [ $foo -eq 0 ]
> sh: 2953838592: out of range
> 

Ok -- you can probably make the obvious change to in_network(), replacing
the '-eq' with '='.

That will take care of the immediate problem but, as you point out, there
are other cases in the code where addresses are compared numerically for
other than equality. Unfortunately, the arguments to the test are usually
calculated using the value returned by decodeaddr().

-Tom
-- 
Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ [EMAIL PROTECTED]
PGP Public Key   \ https://lists.shorewall.net/teastep.pgp.key

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to