Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
file system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2007 at 02:39 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
treksler commentedactually a umask might be needed to get the proper permissions with mkdir
i ended up using
if (($mode & FILE_CREATE_DIRECTORY) && @umask(0002) && @mkdir($directory, 0775, TRUE)) {but i suppose the old umask could be preserved and set back if desired
the only question is how does (even temporarily) changing umask affect other sites on the same server
Comment #2
zeta ζ commentedHow do I ? Is this for module programmers or does part of a drupal form use this to do its job?
Is this bug still present in -dev?
Comment #3
johannesdr commentedThis has been solved in drupal 7: #515280: file_check_directory() should create recursively
Perhaps it should be backported to Drupal 6?
So I think irstudio's patch is good, it works for me.
Comment #5
johannesdr commentedupdated patch to latest cvs version
Comment #7
brad.bulger commented#5: file-180970.patch queued for re-testing.
Comment #9
brad.bulger commentedthis seems to be an issue with D6 testing - #961172: All D6 Core patches are failing
Comment #10
ygerasimov commentedThank you for patch. It really helps. Patch rerolled with git.
Comment #11
gábor hojtsyUnfortunately PHP 5.0 introduced the third parameter, so we cannot just assume that is going to work on all supported PHP versions for Drupal 6. Drupal 6 should work on PHP 4.3.5 or later. In general I think it would be great to give this more eyes and testing.