Opened 17 years ago
Closed 17 years ago
#9274 closed defect (bug) (fixed)
Filesystem Class for ftpext does not perform chmod for directories
| Reported by: | st3ff3n | Owned by: | DD32 |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | Filesystem API | Version: | 2.7.1 |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | Focuses: |
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
@
17 years ago
- Keywords reporter-feedback added
- Milestone Unassigned → 2.8
- Owner set to
- Status new → assigned
- Type feature request → defect (bug)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I'll look into this.
Can I get some examples however?
So, In short:
define('FS_CHMOD_DIR', 0660);(Note the leading zeo): [10050]