diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-11-20 02:26:37 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-11-20 02:27:19 +0000 |
commit | 4ed10b7cc4c4e7394416167314e94cef74906d63 (patch) | |
tree | 72cf7c826ccd96c336ce30a39702b6abeaab6994 /lib/wrongdoc/changelog.rb | |
parent | 33c794a884a65d1dceff17e6ec5729b8538f20b6 (diff) | |
download | wrongdoc-4ed10b7cc4c4e7394416167314e94cef74906d63.tar.gz |
respect umask for ChangeLog and NEWS files
We do not need restrictive permissions for these files.
Diffstat (limited to 'lib/wrongdoc/changelog.rb')
-rw-r--r-- | lib/wrongdoc/changelog.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/wrongdoc/changelog.rb b/lib/wrongdoc/changelog.rb index f16bfbf..324a13b 100644 --- a/lib/wrongdoc/changelog.rb +++ b/lib/wrongdoc/changelog.rb @@ -19,6 +19,7 @@ module Wrongdoc::Changelog fp.write line } end + fp.chmod(0666 & ~File.umask) File.rename(fp.path, 'ChangeLog') fp.close! end |