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

Michael Stucki michael at typo3.org
Wed Feb 8 15:22:16 CET 2006


committed.

- michael

Michael Stucki wrote:

> 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

-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/



More information about the TYPO3-team-core mailing list