Opened 12 years ago
Closed 11 years ago
#24277 closed defect (bug) (fixed)
chgrp and chown don't work for Filesystem over SSH2
Reported by: | nacin | Owned by: | dd32 |
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Filesystem API | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
As found using a static analyzer in #24210 (from rlerdorf).
Looks to be copy-pasted from the chmod method. Attaching a patch that I think does the trick.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
I have no ability to test the SSH2 transport at present, but the patch looks sane, chgrp looks correct, chown looks correct. I don't have a spare VM to test in right now, so if someone who has access to the SSH2 extension wants to give it a whirl, it'd be much appreciated.
I personally want to see it removed from core in preference for the plugin: #16925 http://wordpress.org/extend/plugins/ssh-sftp-updater-support/ - The plugin uses pure PHP and doesn't rely on the SSH2 PHP extension, so it's more compatible generally