Be more fault-tolerant when reading checkgroups.
* Accept lines starting with whitespace. * Drop empty "groups", i.e. lines containing only whitespace. Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
parent
0dc13b3980
commit
7662b1065e
|
@ -230,8 +230,9 @@ sub ReadGroupList {
|
|||
my %ValidGroups;
|
||||
open (my $LIST,"<$Filename") or &Bleat(2,"Cannot read $Filename: $!");
|
||||
while (<$LIST>) {
|
||||
s/^(\S+).*$/$1/;
|
||||
s/^\s*(\S+).*$/$1/;
|
||||
chomp;
|
||||
next if /^$/;
|
||||
$ValidGroups{$_} = '1';
|
||||
};
|
||||
close $LIST;
|
||||
|
|
Loading…
Reference in a new issue