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 dbf6729: set directory permissions
Date Sun, 10 Jan 2016 20:36:32 GMT
Commit dbf6729674d50b4399827d17ca1a2f399d8738a2:
    set directory permissions


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

------------------------------------------------------------
www/secmail/models/message.rb                                | + -
------------------------------------------------------------
2 changes: 1 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/secmail/models/message.rb b/www/secmail/models/message.rb
index 0394221..01b1d73 100644
--- a/www/secmail/models/message.rb
+++ b/www/secmail/models/message.rb
@@ -124,7 +124,7 @@ def write_headers
   #
   def write_email
     dir = @mailbox.dir
-    Dir.mkdir dir unless Dir.exist? dir
+    Dir.mkdir dir, 0755 unless Dir.exist? dir
     File.write File.join(dir, @hash), @email, encoding: Encoding::BINARY
   end
 

Mime
View raw message