replace all system() shell invocation with safer non-shell alternative

This commit is contained in:
Jörg Thalheim
2025-08-05 23:28:51 +02:00
committed by Jörg Thalheim
parent 19280b3466
commit 5cc6ae3ca3
6 changed files with 23 additions and 9 deletions

View File

@@ -50,7 +50,7 @@ my $pid;
if (!defined($pid = fork())) {
die "Cannot fork(): $!";
} elsif ($pid == 0) {
exec("python3 $ctx{jobsdir}/server.py $filename");
exec("python3", "$ctx{jobsdir}/server.py", $filename);
} else {
my $newbuild = $db->resultset('Builds')->find($build->id);
is($newbuild->finished, 1, "Build should be finished.");