Opened 16 years ago
Closed 16 years ago
#9274 closed defect (bug) (fixed)
Filesystem Class for ftpext does not perform chmod for directories
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | normal | Version: | 2.7.1 |
Component: | Filesystem API | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
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
Attachments (1)
Change History (5)
#1
@
16 years ago
- Keywords reporter-feedback added
- Milestone changed from Unassigned to 2.8
- Owner set to DD32
- Status changed from new to assigned
- Type changed from feature request to defect (bug)
Note: See
TracTickets for help on using
tickets.
I'll look into this.
Can I get some examples however?
So, In short:
define('FS_CHMOD_DIR', 0660);
(Note the leading zeo): [10050]