Helper/Nix: constructRunCommandLogPath: take RunCommandLog as input
This way we ensure that it actually exists in the database, rather than blindly trusting user-generated input.
This commit is contained in:
@ -163,7 +163,7 @@ sub buildFinished {
|
||||
|
||||
$runlog->started();
|
||||
|
||||
my $logPath = Hydra::Helper::Nix::constructRunCommandLogPath($runlog->uuid);
|
||||
my $logPath = Hydra::Helper::Nix::constructRunCommandLogPath($runlog);
|
||||
my $dir = dirname($logPath);
|
||||
my $oldUmask = umask();
|
||||
|
||||
|
Reference in New Issue
Block a user