[wp-trac] Re: [WordPress Trac] #10170: File Permissions on Creation (Plugin but might be Theme as well)

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 29 10:23:08 GMT 2009


#10170: File Permissions on Creation (Plugin but might be Theme as well)
-------------------------------------+--------------------------------------
 Reporter:  hakre                    |        Owner:  dd32    
     Type:  defect (bug)             |       Status:  reopened
 Priority:  normal                   |    Milestone:  2.8.1   
Component:  Filesystem               |      Version:  2.8     
 Severity:  normal                   |   Resolution:          
 Keywords:  has-patch tested commit  |  
-------------------------------------+--------------------------------------

Comment(by azaozz):

 Perhaps we can remove the default permission for 2.8.1. The attached patch
 still checks for it in case a plugin is using it.

 Replying to [comment:15 hakre]:
 >  *  function mkdir(): ''if( ! $chmod )'' with default of ''$chmod =
 false'' is unable for a $chmod = 0000; (int 0 as octal representation).
 that is a valid permission in unix, right? so better to comapre against
 NULL again (=== null)

 Not allowing permissions of 0000 is a feature not a bug. As DD32 says
 there's no need for unusable files or dirs.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10170#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list