forked from extern/shorewall_code
Disallow ':' as the only contents of the USER/GROUP column
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
124dafbf52
commit
fc361afbc3
@ -4326,7 +4326,7 @@ sub do_user( $ ) {
|
||||
|
||||
require_capability 'OWNER_MATCH', 'A non-empty USER column', 's';
|
||||
|
||||
assert ( $user =~ /^(!)?(.*?)(:(.*))?$/ );
|
||||
assert( $user =~ /^(!)?(.*?)(:(.+))?$/ );
|
||||
my $invert = $1 ? '! ' : '';
|
||||
my $group = supplied $4 ? $4 : '';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user