Opened 4 months ago
Last modified 4 months ago
#23589 new defect (bug)
FS_CHMOD_FILE doesn't work for ssh — at Version 1
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Filesystem | Version: | 3.5.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by SergeyBiryukov)
Steps to reproduce:
- set up ssh access for WordPress (FTP_* constants).
- define('FS_CHMOD_FILE', 0664).
- install some theme.
Expected result: files have 0664 permissions.
Actual result: files have default permissions (0644).
I believe this happens because filename is ltrimmed before sending over SSH, but not restored before changing permissions. See this.
Note: See
TracTickets for help on using
tickets.