Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: Bootstrap doesn't respect defaultDirMode #13756

Closed
boboldehampsink opened this issue Sep 28, 2023 · 2 comments
Closed

[4.x]: Bootstrap doesn't respect defaultDirMode #13756

boboldehampsink opened this issue Sep 28, 2023 · 2 comments

Comments

@boboldehampsink
Copy link
Contributor

What happened?

Description

Craft bootstrap always uses chmod 0755, even when defaultDirMode is set to something else.

Steps to reproduce

  1. Set defaultDirMode to 0777 for example
  2. Start Craft
  3. Folders like storage/runtime are still created with 0755

Expected behavior

I expect these folders to be created with chmod 0777

Actual behavior

They are always created with 0755

See https://github.com/craftcms/cms/blob/develop/bootstrap/bootstrap.php#L32-L39 where this happens.

Craft CMS version

3 and 4

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

Thanks for reporting that! Fixed for the next v3 and v4 releases.

@brandonkelly
Copy link
Member

Craft 3.9.5 and 4.5.7 are out with a fix for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants