From 7ae851f6422ffeb51bf587e9621b3dc21180221d Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 26 Nov 2012 12:43:32 +0200 Subject: [PATCH] Fix critical issue with dir permission for namespaces --- app/models/namespace.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/namespace.rb b/app/models/namespace.rb index 742c5cda233..7fe86440339 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -44,7 +44,7 @@ class Namespace < ActiveRecord::Base def ensure_dir_exist namespace_dir_path = File.join(Gitlab.config.git_base_path, path) - Dir.mkdir(namespace_dir_path) unless File.exists?(namespace_dir_path) + Dir.mkdir(namespace_dir_path, 0770) unless File.exists?(namespace_dir_path) end def move_dir