Fix for '0' in USER/GROUP column

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5996 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-18 15:49:07 +00:00
parent 6fce3afc57
commit b0a2ea3d33

View File

@ -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;