[wp-trac] [WordPress Trac] #9936: Improve Filesystem method choice
for 'direct'; introduce FS_METHOD constant.
WordPress Trac
wp-trac at lists.automattic.com
Mon May 25 10:16:47 GMT 2009
#9936: Improve Filesystem method choice for 'direct'; introduce FS_METHOD
constant.
--------------------------+-------------------------------------------------
Reporter: dd32 | Owner: dd32
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Filesystem | Version: 2.8
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Just talking with azaozz on IRC, It seems that the core upgrades are
failing on some hosts due to filesystem permissions errors, Which can be
traced back to the systems temporary directory being writable, whilst the
actual ABSPATH directory is unwritable.
The attached patch changes {{{get_filesystem_method()}}} to attempt to
create a file in ABSPATH {{{called .<current unix time>}}}.
The checks for file ownership are still present.
Patch also introduces the constant 'FS_METHOD' which can be used along
side the filesystem_method filter & other filesystem constants to work
around any incorrect-choices which come up.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9936>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list