[TYPO3-dev] t3lib_div::fixPermissions lacks support for directories

Stefan Geith typo3dev2010.nospam1 at geithware.de
Mon Mar 8 16:46:05 CET 2010


Hi Devs,

t3lib_div::fixPermissions($file) only supports Permissons for _files_.

Shouldn't it also support fixing permissions for directories ?
For a project I had to create subdirectories of typo3temp and so a found 
out, that this is not supported.

Maybe fixPersmission could be changed like this:

...
   } elseif (@is_dir($file)) {
     @chmod($file, 
octdec($GLOBALS['TYPO3_CONF_VARS']['BE']['folderCreateMask']));		
     if($GLOBALS['TYPO3_CONF_VARS']['BE']['createGroup']) {	
       @chgrp($file, $GLOBALS['TYPO3_CONF_VARS']['BE']['createGroup']);	
     }
   }
...

Is there an interest in fixing this ?
Should I create a patch and a bugtracker entry ?

/Stefan




More information about the TYPO3-dev mailing list