Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve file mode (permissions) on tidy.
This changes the method of writing out the tidied file from ->spew() to ->append({truncate => 1}). spew() copies the new file into place, which ends up resetting the file mode based on the current umask. Using append() instead preserves the file permissions and ownership, without us having to keep track of the mode and resetting it after writing the file.
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters