Wordpress should explicitly set the permissions on generated .htaccess files
|Reported by:||conall||Owned by:|
After installing Wordpress 3.2 into a newly setup vhost, I let Wordpress generate a .htaccess file with mod_rewrite rules for permalinks.
The vhost immediately served 500s since the newly created .htaccess file was set to only be read/write by the vhost owner and the webserver process could not read it at all.
Wordpress should not rely on the umask settings of it's install directory and should explicitly chmod a generated .htaccess file immediately after writing to the file.