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

Original file permissions are lost on gofmt #921

Closed
joegrasse opened this issue Jun 30, 2016 · 0 comments · Fixed by #922
Closed

Original file permissions are lost on gofmt #921

joegrasse opened this issue Jun 30, 2016 · 0 comments · Fixed by #922

Comments

@joegrasse
Copy link
Contributor

Actual behavior

When editing a go source file, the file permissions can be changed.

Expected behavior

The file permissions should not be changed

Steps to reproduce:

  1. set umask to 0022
  2. touch test.go
  3. chmod 666 test.go
  4. vi test.go
  5. save and quit
  6. file permissions are now 644
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