From 93ee4432def238fa5a6985ab78e2d3638804c4f2 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 18 Jun 2016 09:44:35 -0700 Subject: [PATCH] Allow : in USER columns Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index e9da4fa43..010bf2f5e 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -5220,6 +5220,8 @@ sub do_user( $ ) { if ( supplied $2 ) { $user = $2; + $user =~ s/:$//; + if ( $user =~ /^(\d+)(-(\d+))?$/ ) { if ( supplied $2 ) { fatal_error "Invalid User Range ($user)" unless $3 >= $1;