[wp-trac] [WordPress Trac] #49218: WP_Filesystem_SSH2 ssh2_sftp_mkdir permissions

WordPress Trac noreply at wordpress.org
Fri Jun 19 10:36:20 UTC 2020


#49218: WP_Filesystem_SSH2 ssh2_sftp_mkdir permissions
------------------------------+-----------------------------
 Reporter:  bbrdaric          |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.5
Component:  Filesystem API    |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48090" 48090]:
 {{{
 #!CommitTicketReference repository="" revision="48090"
 Filesystem API: Expicitly set directory permissions in
 `WP_Filesystem_SSH2::mkdir()`.

 This ensures the permissions are correct after a directory is created with
 `ssh2_sftp_mkdir()`, which appears to be affected by system `umask`
 settings.

 Props bbrdaric.
 Fixes #49218.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49218#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list