mkdir() doesn't take care about the umask#189
mkdir() doesn't take care about the umask#189havvg merged 1 commit intoliip:masterfrom kingcrunch:folder-permissions
Conversation
mkdir() doesn't take care about the umask
|
Thank you! Tagged: https://github.com/liip/LiipImagineBundle/tree/v0.10.1 |
|
Aside of this, the cache resolver does not take any open_basedir restriction into account, since the resolvers use the request basePath (which is actually the URL). When the check on |
|
@rvanlaak What do you recommend? I fear if somebody set |
|
Well, in my opinion the Edit: I've investigated why the resolving goes wrong, since it is possible to set the So for now it looks like the |
I use the default setting
The problem now is, that if a umask is set, the permissions for the created folders aren't
0777. This break the cache-cleanup. It should also take care, that every recursively created folder should have the same permissions.Update: While I was looking for a solution I realized, that during storing the created files no permission mask is applied to
mkdir()at allhttps://github.com/liip/LiipImagineBundle/blob/master/Imagine/Cache/Resolver/AbstractFilesystemResolver.php#L75
This means, even if I set something different as
cache_mkdir_modeit is never applied, is it? Is this intended?