[BUGFIX] GeneralUtility->copyDirectory does not fix permissions 72/28772/2
authorBenjamin Mack <benni@typo3.org>
Tue, 25 Mar 2014 15:05:38 +0000 (16:05 +0100)
committerErnesto Baschny <ernst@cron-it.de>
Tue, 25 Mar 2014 17:23:42 +0000 (18:23 +0100)
Instead of using TYPO3-internal functions
for creating directories and moving files,
default PHP functions are used. This creates
problems with permissions e.g. when
installing the introduction package.

Releases: 6.2
Resolves: #57298
Change-Id: Ifa5e92fd245db033dacbc3bcd15d487bd7af2101
Reviewed-on: https://review.typo3.org/28772
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
typo3/sysext/core/Classes/Utility/GeneralUtility.php

index 2285f3a..9921960 100644 (file)
@@ -3744,10 +3744,11 @@ Connection: close
                                \RecursiveIteratorIterator::SELF_FIRST
                        );
                        foreach ($iterator as $item) {
+                               $target = $destination . '/' . $iterator->getSubPathName();
                                if ($item->isDir()) {
-                                       @mkdir($destination . '/' . $iterator->getSubPathName());
+                                       static::mkdir($target);
                                } else {
-                                       @copy($item, $destination . '/' . $iterator->getSubPathName());
+                                       static::upload_copy_move($item, $target);
                                }
                        }
                }