[TYPO3-dev] Problem with t3lib_div:tempnam() with symLinked typo3temp-folder

Peter Russ peter.russ at 4many.net
Mon Mar 8 17:51:24 CET 2010


--- Original Nachricht ---
Absender:   Stefan Geith
Datum:       08.03.2010 17:41:
> Peter Russ schrieb:
>> --- Original Nachricht ---
>> Absender:   Stefan Geith
>> Datum:       08.03.2010 16:55:
>>> Hi Devs,
>>>
>>> for some reasons, I have a symlinked typo3temp-folder.
>>>
>>> The only issues with this symlinked folder occur with the 
>>> php-function tempnam(): it returns the name of the symlinked folder 
>>> istead of the originally intended folder ...
>>>
>>> Example:
>>> /var/www/typo3temp is linked to /unsaved_data/typo3temp
>>>
>>> then
>>>   tempnam('/var/www/typo3temp/xxx')
>>> returnes something like
>>>   /unsaved_data/typo3temp/xxx_UX74F
>>>
>>> and this breaks basedir-restrictions....
>>>
>> Why don't you fix basedir?
> 
> How ?
> I think, I only could disable basedir ...

add it to the basedir declaration

> 
> /Stefan
> 
> 
> 
> P.S.
> And why do I use symlinked folders ?
> Because the backup-tool doesn't follow symlinks
> and so leaves unnecessary data out ...
> 
> /Stefan

try a different backuptool ;-) e.g backupmanager


-- 
docendo discimus

_____________________________
uon GbR
http://www.uon.li
http://www.xing.com/profile/Peter_Russ




More information about the TYPO3-dev mailing list