Issue Bug Closed

#49029Files created via FAL get the wrong permissions set

Michael Knabe 06/11/13, 14:24 updated 10/02/18, 12:14

Description

When creating a File through FAL GeneralUtility::fixPermissions is not called so the file won’t have the correct access permissions afterwards, the fileCreateMask is just ignored.

Affected versions:
TYPO3.CMS 6.0 – 6.2-dev

Steps to reproduce:
- Set $TYPO3_CONF_VARS[‘BE’][‘fileCreateMask’] to something else but the umask (0624 for example)
- Create a file using the Filelist-Module in TYPO3-BE
- Check the files permissions in the filesystem (use stat $filename to get the numeric permissions)
- See that the output of stat and fileCreateMask are different

The solution is to call GeneralUtility::fixPermissions after creating a file in the LocalDriver. Afterwards you’ll see that files have the correct permissions

Reviews 6