mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 19:30:44 +01:00
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:
parent
6fce3afc57
commit
b0a2ea3d33
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user