Skip to content
Snippets Groups Projects
Commit befe4f01 authored by Frans Saris's avatar Frans Saris Committed by Wouter Wolters
Browse files

[BUGFIX] Call fixPermissions after replaceFile

Resolves: #68642
Releases: master, 6.2
Change-Id: Iec6bf8989cae1fafd2cc909635d980c971af656c
Reviewed-on: http://review.typo3.org/42141


Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
parent f3d5194a
Branches
Tags
No related merge requests found
......@@ -840,6 +840,7 @@ class LocalDriver extends AbstractHierarchicalFilesystemDriver {
public function replaceFile($fileIdentifier, $localFilePath) {
$filePath = $this->getAbsolutePath($fileIdentifier);
$result = rename($localFilePath, $filePath);
GeneralUtility::fixPermissions($filePath);
if ($result === FALSE) {
throw new \RuntimeException('Replacing file ' . $fileIdentifier . ' with ' . $localFilePath . ' failed.', 1315314711);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment