1
0
Fork 0

Make new phar filename random to avoid possible concurrency issues, refs #10252

pull/10262/head
Jordi Boggiano 2021-11-08 11:42:37 +01:00
parent 6a7264fc2d
commit 3bb78fd1ee
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ EOT
return 0; return 0;
} }
$tempFilename = $tmpDir . '/' . basename($localFilename, '.phar').'-temp.phar'; $tempFilename = $tmpDir . '/' . basename($localFilename, '.phar').'-temp'.rand(0, 10000000).'.phar';
$backupFile = sprintf( $backupFile = sprintf(
'%s/%s-%s%s', '%s/%s-%s%s',
$rollbackDir, $rollbackDir,