From b0a2ea3d33a5650a126e9e0a997b00c881b6ceff Mon Sep 17 00:00:00 2001 From: teastep Date: Wed, 18 Apr 2007 15:49:07 +0000 Subject: [PATCH] Fix for '0' in USER/GROUP column git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5996 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Chains.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index 8498a0597..628cb5e45 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -772,7 +772,7 @@ sub do_user( $ ) { my $user = $_[0]; my $rule = '-m owner '; - return '' unless $user and $user ne '-'; + return '' unless defined $user and $user ne '-'; if ( $user =~ /^(!)?(.*)\+(.*)$/ ) { $rule .= "! --cmd-owner $2 " if $2;