[wp-trac] [WordPress Trac] #64610: Direct filesystem chmod emits warnings even if the permissions already match

WordPress Trac noreply at wordpress.org
Mon Feb 9 16:53:24 UTC 2026


#64610: Direct filesystem chmod emits warnings even if the permissions already
match
----------------------------+-----------------------------
 Reporter:  redsweater      |       Owner:  SergeyBiryukov
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  7.0
Component:  Filesystem API  |     Version:  trunk
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"61601" 61601]:
 {{{
 #!CommitTicketReference repository="" revision="61601"
 Filesystem API: Avoid `chmod()` warnings if the permissions already match.

 This prevents spurious warnings from `WP_Filesystem_Direct::chmod()` when
 the web process doesn't have ownership over the files, and thus cannot
 change the permissions, even if only to reassert the existing mode.

 Follow-up to [6779], [11667], [12998].

 Props redsweater, mukesh27, SergeyBiryukov.
 Fixes #64610.
 }}}

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


More information about the wp-trac mailing list