go-latex icon indicating copy to clipboard operation
go-latex copied to clipboard

fix perm to octal

Open sukumo28 opened this issue 3 years ago • 0 comments

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 avatar May 22 '21 06:05 sukumo28