Brian J. Murrell wrote: > On Thu, 2007-12-20 at 10:50 -0800, Tom Eastep wrote: >> Ok -- one more test. What does this do? >> >> [ 16777216 -eq 2953838592 ] || echo foo > > # [ 16777216 -eq 2953838592 ] || echo foo > foo >
Ok -- the bug appears to be in BusyBox 'test' then. The attached patch should work around the problem. > FWIW, BTW, I did file a bug with OpenWRT about this. Not sure it will > go anywhere though. -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
Index: lib.base =================================================================== --- lib.base (revision 7931) +++ lib.base (working copy) @@ -584,7 +584,7 @@ { local netmask=$(ip_netmask $2) - test $(( $(decodeaddr $1) & $netmask)) -eq $(( $(decodeaddr ${2%/*}) & $netmask )) + [ $(( $(decodeaddr $1) & $netmask)) -eq $(( $(decodeaddr ${2%/*}) & $netmask )) ] } #
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 Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users