whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit d6a3bac: move umask call
Date Fri, 04 Mar 2016 22:27:33 GMT
Commit d6a3bac57196401cd5264fe4a4131a9399a45744:
    move umask call


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
tools/deliver.rb                                             | + -
------------------------------------------------------------
2 changes: 1 additions, 1 deletions.
------------------------------------------------------------


diff --git a/tools/deliver.rb b/tools/deliver.rb
index f204b9f..be418b0 100644
--- a/tools/deliver.rb
+++ b/tools/deliver.rb
@@ -18,8 +18,8 @@
 # build file name
 file = "#{MAIL_ROOT}/#{dest[/^[-\w]+/]}/#{time.strftime("%Y%m")}/#{hash}"
 
+File.umask 0002
 FileUtils.mkdir_p File.dirname(file)
 File.write file, mail, encoding: Encoding::BINARY
 File.utime time, time, file
-File.umask 0002
 File.chmod 0644, file

Mime
View raw message