Warning: chmod() [function.chmod]: Operation not permitted in /usr/home/web/users/a0018831/html/SugarCRM/include/utils/sugar_file_utils.php on line 196
can i just comment out this entire section of code from the sugar_file_utils.php or does this code serve a purpose?
**
* sugar_chmod
* Attempts to change the permission of the specified filename to the mode value specified in the
* default_permissions configuration; otherwise, it will use the mode value.
*
* @param string filename - Path to the file
* @param int $mode The integer value of the permissions mode to set the created directory to
* @return boolean Returns TRUE on success or FALSE on failure.
*/
function sugar_chmod($filename, $mode=null) {
if ( !is_int($mode) )
$mode = (int) $mode;
if(!is_windows()){
if(!isset($mode)){
$mode = get_mode('file_mode', $mode);
}
if(isset($mode) && $mode > 0){
return chmod($filename, $mode);
}else{
return false;
}
}
return true;
}


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks