[BUGFIX] Possible race condition when creating directory 81/32881/6
authorBernhard Kraft <kraft@webconsulting.at>
Fri, 19 Sep 2014 08:58:36 +0000 (10:58 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 9 Oct 2014 20:01:37 +0000 (22:01 +0200)
commit2e7e5f3055cd91e71b4aedbcd1a7b8acb710d37d
tree520ec536ac1bb8c0724e13150dd09a3a29c92f3f
parentf6d66f21fccee997e0d5f78d42703d23177c4c88
[BUGFIX] Possible race condition when creating directory

During various actions in the backend which require a cache directory
in typo3temp/ a race condition can occur while creating the directory.
The race condition is caused by GeneralUtility::createDirectoryPath.

There is a check whether the directory to be created already exists.
Later the directory is created using mkdir(). If in the meantime
another process creates the directory the exception will get thrown.

Resolves: #47269
Releases: master, 6.2
Change-Id: Iff46addd9ad6d738d1760f82a436dec9840c331d
Reviewed-on: http://review.typo3.org/32881
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Utility/GeneralUtility.php