Index: t3lib/class.t3lib_div.php =================================================================== --- t3lib/class.t3lib_div.php (revision 9971) +++ t3lib/class.t3lib_div.php (revision ) @@ -3131,13 +3135,17 @@ /** * Sets the file system mode and group ownership of a file or a folder. * - * @param string Absolute filepath of file or folder, must not be escaped. + * @param string filepath of file or folder, must not be escaped. Path can be absolute or relative. * @param boolean If set, also fixes permissions of files and folders in the folder (if $path is a folder) * @return mixed TRUE on success, FALSE on error, always TRUE on Windows OS */ public static function fixPermissions($path, $recursive = FALSE) { if (TYPO3_OS != 'WIN') { $result = FALSE; + // make path absolute + if (!self::isAbsPath($path)) { + $path = self::getFileAbsFileName($path, FALSE); + } if (self::isAllowedAbsPath($path)) { if (@is_file($path)) { // "@" is there because file is not necessarily OWNED by the user