mbrukman / autogen

Automatically generate boilerplate license comments.
Apache License 2.0
98 stars 27 forks source link

cmdline option -i doesn't preserve permissions #6

Closed tadhunt closed 8 years ago

tadhunt commented 8 years ago

Bug:

Expected behavior:

mbrukman commented 8 years ago

Good catch, @tadhunt!

The way this feature was implemented is by writing to a new file and then moving the file over to the old file, so the new file is being created with your default umask and hence may be different from the original file.

Prior moving the new temp file to the original location, we should ensure that the permissions are transferred. I'll look into this.

mbrukman commented 8 years ago

I believe this issue has been fixed. Please try it out and let me know if you are still seeing any discrepancies with file permissions.