From 3ce0b98d99eea2922110f9dbfed7f6f0839cf77f Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Sat, 31 Mar 2007 10:06:51 -0500 Subject: [PATCH] File Security Redux. Hopefully, this will fix the world-writable-files problem with Rails, once and for all. --- config/environment.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/environment.rb b/config/environment.rb index 64b6dbca..f556be3a 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -21,6 +21,7 @@ Rails::Initializer.run do |config| config.active_record.schema_format = :ruby config.load_paths << "#{RAILS_ROOT}/vendor/plugins/sqlite3-ruby" + File.umask(0026) end # Instiki-specific configuration below