[BUGFIX] ENABLE_INSTALL_TOOL does not respect fileCreateMask
authorDmitry Dulepov <dmitry@typo3.org>
Wed, 23 Nov 2011 14:24:52 +0000 (16:24 +0200)
committerGeorg Ringer <mail@ringerge.org>
Sun, 18 Dec 2011 07:16:49 +0000 (08:16 +0100)
When this file is created by the Install tool, the fileCreateMask
is not respected. That does not allow to delete this file through
FTP or from SSH if the web server user and group is different
from logged in user.

Change-Id: I2f719aff3ed14b6d1ae6eea51057b78a8f84b262
Resolves: #21740
Releases: 4.7, 4.6
Reviewed-on: http://review.typo3.org/6877
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Mario Rimann
Reviewed-by: Stefan Neufeind
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/install/Classes/Service/BasicService.php

index d152733..3f3ac8e 100644 (file)
@@ -51,7 +51,10 @@ class Tx_Install_Service_BasicService {
         * @return bool
         */
        public static function createInstallToolEnableFile() {
-               return touch(self::getInstallToolEnableFilePath());
+               $installEnableFilePath = self::getInstallToolEnableFilePath();
+               $result = touch($installEnableFilePath);
+               t3lib_div::fixPermissions($installEnableFilePath);
+               return $result;
        }
 
        /**