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

fix perm to octal #1

Open
sukumo28 opened this issue May 26, 2021 · 0 comments · May be fixed by #2
Open

fix perm to octal #1

sukumo28 opened this issue May 26, 2021 · 0 comments · May be fixed by #2

Comments

@sukumo28
Copy link

Hi.
I found out that you pass a perm for WriteFile method as decimal.
But you want to pass octal arn't you?

For example,
0777 is 111111111 in binary and it means rwxrwxrwx.
777 is 1100001001 in binary and it means r----x--x.

If you want to set perm r----x--x, you should use 0411 instead of decimal 777.

@sukumo28 sukumo28 linked a pull request May 31, 2021 that will close this issue
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 a pull request may close this issue.

1 participant