[BUGFIX] Handle symlink on extension update 26/18826/4
authorPhilipp Gampe <philipp.gampe@typo3.org>
Sun, 10 Mar 2013 16:15:27 +0000 (17:15 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 11 Mar 2013 19:41:51 +0000 (20:41 +0100)
commit6939112045f89a961979caf51a30afd01a18243a
tree3160999a2d04dba8cd2783c9bbe7d06a6c828fc0
parentf5401a1125c1ed4788333e6d4be257d9766e298c
[BUGFIX] Handle symlink on extension update

If an extension is updated and the extension in the file
system is a symlink to a different directory, all
target directory contents is removed and the update fails.

Introduce a check for symlink and just remove the
symlink in this case.

Resolves: #46158
Releases: 6.1, 6.0
Change-Id: I112ae7192fb0edf77ebd703a61804dc09ca506a4
Reviewed-on: https://review.typo3.org/18826
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php
typo3/sysext/extensionmanager/Tests/Unit/Utility/FileHandlingUtilityTest.php