Beef up check in do_user()

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8162 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-02-07 19:16:25 +00:00
parent 6d421fc49e
commit c819e1fea7

View File

@ -1194,9 +1194,9 @@ sub do_user( $ ) {
} elsif ( $user =~ /^(.*):(.*)$/ ) {
$rule .= "--uid-owner $1 " if defined $1 && $1 ne '';
$rule .= "--gid-owner $2 " if defined $2 && $2 ne '';
} elsif ( $user =~ /^!/ ) {
$user =~ s/!//;
$rule .= "! --uid-owner $user ";
} elsif ( $user =~ /^!(.*)$/ ) {
fatal_error "Invalid USER/GROUP (!)" if $1 eq '';
$rule .= "! --uid-owner $1 ";
} else {
$rule .= "--uid-owner $user ";
}