[BUGFIX] ENABLE_INSTALL_TOOL does not respect fileCreateMask
authorDmitry Dulepov <dmitry@typo3.org>
Wed, 23 Nov 2011 14:24:52 +0000 (16:24 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Tue, 17 Jan 2012 10:17:38 +0000 (11:17 +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: I0e3c69d0cfd06b8e3d389b191ba95f0bfc0729ba
Resolves: #21740
Releases: 4.7, 4.6
Reviewed-on: http://review.typo3.org/7349
Reviewed-by: Markus Klein
Reviewed-by: Mario Rimann
Tested-by: Markus Klein
Reviewed-by: Stefan Neufeind
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
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;
        }
 
        /**