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

PHP: Revisit the default umask, consider 022 #1571

Open
adamziel opened this issue Jul 3, 2024 · 4 comments
Open

PHP: Revisit the default umask, consider 022 #1571

adamziel opened this issue Jul 3, 2024 · 4 comments

Comments

@adamziel
Copy link
Collaborator

adamziel commented Jul 3, 2024

Related to this Studio issue:

Automattic/studio#269

tl;dr the permissions of files newly created by PHP.wasm are not aligned with the default unix values. It seems like an Emscripten-level issue:

emscripten-core/emscripten#9916
emscripten-core/emscripten#17269

We'll need either an Emscripten PR or a Playground-level patch.

@adamziel adamziel converted this from a draft issue Jul 3, 2024
@adamziel adamziel changed the title Revisit the default umask, consider 022 PHP: Revisit the default umask, consider 022 Jul 3, 2024
@mho22
Copy link
Contributor

mho22 commented Jul 8, 2024

I found an open pull request on Emscripten : #17270 .

They need a test to validate the PR. I have no idea how to do this. But I would be glad to see this PR merged.

[ BTW we probably need 022 instead of 027 ]

@adamziel adamziel moved this from Inbox to Needs Triage/Our Reply in Playground Board Jul 9, 2024
@fluiddot
Copy link
Contributor

fluiddot commented Sep 19, 2024

👋 I've created a PR to update the default umask in Emscripten: emscripten-core/emscripten#22589

@fluiddot
Copy link
Contributor

emscripten-core/emscripten#22589 has been merged, so once a new version of Emscripten is released, we could upgrade it as we did in #1471.

@adamziel
Copy link
Collaborator Author

Lovely work @fluiddot, thank you!

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

No branches or pull requests

3 participants