[TYPO3-core] RFC: Fix bug #75: t3lib_extfilefunc::func_copy() does not set file permissions properly

Michael Stucki michael at typo3.org
Fri Jan 27 10:54:57 CET 2006


This is a CVS patch request.

Bugtracker reference: http://bugs.typo3.org/view.php?id=75

Problem:
If a file is being copied with the filelist modules, the permissions of the 
new one is 755 - no matter what perms the source file had.
This is somehow the "normal" behavior of PHPFileFunctions and exec('cp'), but 
I think this should be fixed.
 
Solution:
Call t3lib_div::fixPermissions() after the file has been copied.

Problems:
I am not sure if this is the correct behaviour. When copying files on a Unix 
system, the file permissions are copied from the original file. However, it 
is probably more consistent to change all file permissions the same way.

Regards, michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_75.diff
Type: text/x-diff
Size: 563 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060127/d40bfd91/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060127/d40bfd91/attachment.pgp 


More information about the TYPO3-team-core mailing list