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

Allow setting file permissions with create_file #820

Merged
merged 1 commit into from
May 10, 2023

Conversation

skipkayhil
Copy link
Member

Ref rails/rails#48135

Previously, to restrict the permissions of a file created using create_file, chmod could be called right after. However, that leaves a short amount of time between when the file is first created and when the permissions are updated where another user could read the file.

This commit enables passing file permissions to create_file so that permissions can be set when the file is created.

Previously, to restrict the permissions of a file created using
create_file, chmod could be called right after. However, that leaves a
short amount of time between when the file is first created and when the
permissions are updated where another user could read the file.

This commit enables passing file permissions to create_file so that
permissions can be set when the file is created.
@casperisfine
Copy link

LGTM (ci failures are unrelated).

@rafaelfranca do you wanna have a look? Otherwise I'll merge.

@byroot byroot merged commit c16e7a1 into rails:main May 10, 2023
11 of 13 checks passed
@skipkayhil skipkayhil deleted the hm-create-file-perm branch May 10, 2023 01:38
@rafaelfranca
Copy link
Member

👍🏽

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

Successfully merging this pull request may close these issues.

None yet

4 participants