Status: New
Owner: ----
New issue 9013 by niels.widger: go.tools/refactor/rename: file permissions
not preserved on rewrite
https://code.google.com/p/go/issues/detail?id=9013
The gorename command does not preserve existing file permissions when
rewriting a file back to disk.
$ umask
0022
$ chmod 755 file.go
$ ls -l file.go
# output shows file.go has permissions 755
$ gorename -from file.go::x -to y
$ ls -l file.go
# output shows file.go now has permissions 644
After looking briefly over the code, I think this may have to do with
os.Create using 0666 as the default permissions as detailed here:
http://golang.org/pkg/os/#Create
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings