Skip to content

Commit

Permalink
Verify robot names passed to --make_alias_file command line option (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Sep 12, 2019
1 parent 4d3ae35 commit a7069c6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/sbin/sympa.pl.in
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,14 @@ if ($main::options{'dump'} or $main::options{'dump_users'}) {
if ($robots eq '*') {
@robots = Sympa::List::get_robots();
} else {
@robots = grep { length $_ } split(/[\s,]+/, $robots);
for my $name (split/[\s,]+/, $robots) {
next unless length($name);
if (Conf::valid_robot($name)) {
push @robots, $name;
} else {
printf STDERR "Invalid robot %s\n", $name;
}
}
}
exit 0 unless @robots;

Expand Down

0 comments on commit a7069c6

Please sign in to comment.