Skip to content

Conversation

@niten94
Copy link
Contributor

@niten94 niten94 commented Dec 15, 2023

The bits set in the mode of files that are created are usually bits not set in the umask except execution bits, so files are usually opened with 0666 mode in other programs. The write permission bit of group and other users in the mode is usually cleared because they are set in the umask.

The bits are not set even if they are cleared in the umask when using micro, so the argument is changed in this pull request. I have not tested if it would work when changing the argument. I have also not made a pull request before, so it would be nice if I am told if there is something I did that is strange.

Set write permission bits of group and other users in mode used when
opening files.
@niten94 niten94 changed the title Set bits in mode used when opening files Set bits in mode used when creating files Dec 16, 2023
@JoeKar
Copy link
Collaborator

JoeKar commented Dec 16, 2023

Looks feasible.

@niten94
Copy link
Contributor Author

niten94 commented Dec 17, 2023

I do not think there is something else that has to be changed but the things I thought about changing has been changed in this pull request. If you thought I will make another pull request because I said I have not created one before, what I meant is that it is the first time I have created one.

@JoeKar
Copy link
Collaborator

JoeKar commented Dec 17, 2023

I'm sorry, I fully misunderstood it and confused myself.

@zyedidia zyedidia merged commit 422305a into zyedidia:master Jan 17, 2024
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.

3 participants