Philip S. Hempel wrote:
>
>> So please tell us how it's actually breaking.
>>   
> 
> Here is the output from where it begins with the errors
> 
> Validating /etc/shorewall/tcdevices...
> sed: bad option in substitution expression
> sed: bad option in substitution expression
> Validating /etc/shorewall/tcclasses...
> Compiling /etc/shorewall/tcdevices...
> sed: bad option in substitution expression
> sh: 0: unknown operand
>   TC Device eth0.1 9950kbit 350kbit defined.
> Compiling /etc/shorewall/tcclasses...
> sed: bad option in substitution expression
> /usr/share/shorewall-shell/compiler: line 1: syntax error: 5*/10

The attached patch to lib.tc should cure this. It restores the childish
substitution from 3.4.

-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.tc
===================================================================
--- lib.tc	(revision 8147)
+++ lib.tc	(working copy)
@@ -44,7 +44,7 @@
 	local rateunit rate
 	rate=$1
 	rateunit=$( echo $rate | sed -e 's/[0-9]*//')
-	rate=$( echo $rate | sed -e 's/[a-z]*//gi')
+	rate=$( echo $rate | sed -e 's/[a-zA-Z]*//g')
 
 	case $rateunit in
 	    kbit|Kbit)

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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