Ticket #7779: getmyuidbad.patch
File getmyuidbad.patch, 606 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/file.php
482 482 483 483 function get_filesystem_method($args = array()) { 484 484 $method = false; 485 if( function_exists(' getmyuid') && function_exists('fileowner') ){485 if( function_exists('posix_getuid') && function_exists('fileowner') ){ 486 486 $temp_file = wp_tempnam(); 487 if ( getmyuid() == fileowner($temp_file) )487 if ( posix_getuid() == fileowner($temp_file) ) 488 488 $method = 'direct'; 489 489 unlink($temp_file); 490 490 }