[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 00:10: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 shouldn't be passing the second arg to mkdir(). Don't think
 it's needed when we do `chmod($path, $chmod);` straight after creating a
 directory. Doing `mkdir($path, FS_CHMOD_DIR)` would always make a dir with
 the wrong permissions when umask is not zero.

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


More information about the wp-trac mailing list