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

Stefan Geith typo3dev2010.nospam1 at geithware.de
Mon Mar 8 17:41:30 CET 2010


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

/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




More information about the TYPO3-dev mailing list