From f2dd5a5cda61e3f7bcfc3d9d94a77a08d66000b5 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Mon, 18 Nov 2013 17:41:00 -0800 Subject: [PATCH] gitweb_config.perl: set umask to 002 When the $cache_grpshared knob is set to true (as it is in our config file), the cache file will be created with mode 0660 instead of 0600. However, that mode is then restricted by the current umask. So unless the default umask of 022 is changed, a true $cache_grpshared setting will have no effect whatsoever on the permissions of the cache file. Set the umask to 002 so that the desired $cache_grpshared = 1 setting actually takes effect. --- gitweb/gitweb_config.perl | 1 + 1 file changed, 1 insertion(+) diff --git a/gitweb/gitweb_config.perl b/gitweb/gitweb_config.perl index 39d5db2..6ed4961 100644 --- a/gitweb/gitweb_config.perl +++ b/gitweb/gitweb_config.perl @@ -94,6 +94,7 @@ $Girocco::Config::httpspushurl and push @git_base_push_urls, $Girocco::Config::h our $cache_grpshared = 1; our $cache_dir = $Girocco::Config::chroot.'/etc'; +umask 002; # required for $cache_grpshared != 0 to work properly $feature{pathinfo}{default}=[1]; -- 2.11.4.GIT