return early if daemon is invalid

pull/4572/head
Isaac Connor 2026-01-26 17:22:14 -05:00
parent 45695211c3
commit bc65f57473
1 changed files with 4 additions and 0 deletions

View File

@ -447,6 +447,10 @@ sub dPrint {
sub start {
my $daemon = shift;
if ( $daemon !~ /^$daemon_patt$/ ) {
Error("Invalid daemon '$daemon' specified");
return;
}
my @args = @_;
my $command = join(' ', $daemon, @args);