demon@svn.wikimedia.org wrote:
Log Message:
Add $wgDefaultDirectoryChmod, allows customizing the default chmod value. Set to 0777 by default to keep current behavior.
Handy... I think there's some other uses of mkdir() directly which should presumably have this default setting applied to them as well...
I'm not super fond of the name though -- maybe $wgDirectoryMode ? :) Anyway...
Compare also with the patch on this old bug: https://bugzilla.wikimedia.org/show_bug.cgi?id=6295
and further notes on: https://bugzilla.wikimedia.org/show_bug.cgi?id=14593
We've got similar issues where we may need to be able to override the default permission mode for thumbnail files, see: https://bugzilla.wikimedia.org/show_bug.cgi?id=6654
Check also texvc, see if old issues there have changed: https://bugzilla.wikimedia.org/show_bug.cgi?id=6248
-- brion