[BUGFIX] Handle symlink on extension update 42/18842/2
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:43:14 +0000 (20:43 +0100)
commit072e4387d8d1333229cc7851a38e5a71ab09267f
tree25a4fff792c5bdc7a445d26577a47a185fb419eb
parent0c5cd69d3e58ca4dd32c1b78acf5bc0e07c29d6b
[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/18842
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php
typo3/sysext/extensionmanager/Tests/Unit/Utility/FileHandlingUtilityTest.php