[TYPO3-core] Gremlin #76: t3lib_div::writeFile() changes permissions without need
Michael Stucki
michael at typo3.org
Wed Oct 26 14:53:44 CEST 2005
Author reports:
Playing around with the filelist module, I discovered the following bug:
If a file has been edited via filelist, the permissions are changed to 775
after saving (or whatever given in ['TYPO3_CONF_VARS']['BE'
['fileCreateMask']).
The editor uses t3lib_div::writeFile(), but this function does not check if
a file did exist before writing and so does not preserve its permissions.
Solution:
Check if the file exists, set a flag, and only change the permissions if
this flag was set.
- michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_76.diff
Type: text/x-diff
Size: 878 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20051026/c9c86b09/attachment.bin
More information about the TYPO3-team-core
mailing list