WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 18 months ago

#23589 closed defect (bug)

FS_CHMOD_FILE doesn't work for ssh — at Version 1

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

Description (last modified by SergeyBiryukov)

Steps to reproduce:

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

comment:1 @SergeyBiryukov2 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.