[wp-trac] [WordPress Trac] #17625: Wordpress can't update itself nor the plugins. Askapache-password-protect

WordPress Trac wp-trac at lists.automattic.com
Tue May 31 11:58:19 UTC 2011


#17625: Wordpress can't update itself nor the plugins. Askapache-password-protect
--------------------------+-----------------------------
 Reporter:  firedev       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.1.3
 Severity:  major         |   Keywords:  has-patch
--------------------------+-----------------------------
 When ask apache is installed Wordpress can't update itself.
     In wp-admin / admin.php there are these lines:

     !defined('FS_CHMOD_DIR') && define('FS_CHMOD_DIR', (S_IRWUGO & ~
 umask()));
     !defined('FS_CHMOD_FILE') && define('FS_CHMOD_FILE', (S_IRWXUGO & ~
 umask()));

     Which are ok but S_IRWUGO = 0666 and S_IRWXUGO = 0777 so for each
 files WordPress sets rwxrwxrwx and rw-rw-rw- for folders which is not
 correct and leads to problems sometimes.

     To fix this change those lines to:

     !defined('FS_CHMOD_DIR') && define('FS_CHMOD_DIR', (S_IRWXUGO & ~
 umask()));
     !defined('FS_CHMOD_FILE') && define('FS_CHMOD_FILE', (S_IRWUGO & ~
 umask()));

 I suggest to include this into the release.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17625>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list