[Typo3-dev] Copying files with Filelist module breaks file permissions

Steffen Mueller steffen at davis.kommwiss.fu-berlin.de
Fri May 14 22:53:38 CEST 2004


Hi List.

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 in typo3.

Solution:
Patch t3lib_extfilefunc::func_copy():
chmod the new file after copying to preserve permissions and add -p 
option to 'cp' command. See attached diff in the bugreport.

Refrering to bug 0000075: 
http://bugs.typo3.org/bug_view_advanced_page.php?bug_id=0000075

Ingmar supposed to discuss this in here and decide wheater this is a bug 
or feature.

I think it is a bug. Ingmar, any comments why this seem to be feature to 
you?

-- 
cheers,
Steffen

----------------------------------------------------------
"Education is man's going forward from cocksure ignorance
to thoughtful uncertainty." (Don Clarks' Scrapbook)
----------------------------------------------------------




More information about the TYPO3-dev mailing list