[wp-trac] [WordPress Trac] #9274: Filesystem Class for ftpext does not perform chmod for directories

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 4 15:06:06 GMT 2009


#9274: Filesystem Class for ftpext does not perform chmod for directories
-----------------------------+----------------------------------------------
 Reporter:  st3ff3n          |       Owner:            
     Type:  feature request  |      Status:  new       
 Priority:  normal           |   Milestone:  Unassigned
Component:  Plugins          |     Version:  2.7.1     
 Severity:  normal           |    Keywords:            
-----------------------------+----------------------------------------------
 When I try to install or update a plugin with ftp, which comes with its
 own directory, the directory gets created with permission 400. The
 ftp_chmod function is not performed for created directories. wp-admin is
 not able, to acces this plugin. I don't know, if this is the desired
 behaviour, but I worked around this with the attached patch. The exists
 function always returns false for directories, so I changed the line to
 also check, if the argument is a directory.

 Perhaps there are better ways, to do this.

 Best regards,
 Steffen Hau

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


More information about the wp-trac mailing list