[BUGFIX] Possible race condition when creating directory 37/33237/2
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:02:05 +0000 (22:02 +0200)
commit76e60adfa09e5311341237bb8465bb651dab92ca
treef62466b41ddb579e37a64570b03c5a60ab09a313
parentf9789dd110e646e7d7129174cfe1221f286ec6d7
[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/33237
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Utility/GeneralUtility.php