[BUGFIX] Call fixPermissions after replaceFile 42/42142/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:58:17 +0000 (15:58 +0200)
Resolves: #68642
Releases: master, 6.2
Change-Id: Iec6bf8989cae1fafd2cc909635d980c971af656c
Reviewed-on: http://review.typo3.org/42142
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php

index 1098d59..2279af0 100644 (file)
@@ -747,6 +747,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);
                }