[BUGFIX] Call fixPermissions after replaceFile 41/42141/2
authorFrans Saris <franssaris@gmail.com>
Thu, 30 Jul 2015 12:59:53 +0000 (14:59 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 30 Jul 2015 13:57:27 +0000 (15:57 +0200)
Resolves: #68642
Releases: master, 6.2
Change-Id: Iec6bf8989cae1fafd2cc909635d980c971af656c
Reviewed-on: http://review.typo3.org/42141
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php

index 1a11cb7..f8867d2 100644 (file)
@@ -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);
                }