WordPress.org

Make WordPress Core

Opened 14 months ago

Last modified 7 months ago

#23589 closed defect (bug)

FS_CHMOD_FILE doesn't work for ssh — at Initial Version

Reported by: x-yuri Owned by:
Milestone: 3.7 Priority: normal
Severity: normal Version: 3.5.1
Component: Filesystem API Keywords:
Focuses: Cc:

Description

Steps to reproduce: 1) set up ssh access for wordpress (FTP_* constants), 3) define('FS_CHMOD_FILE', 0664), 2) 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.

Change History (0)

Note: See TracTickets for help on using tickets.