From ac900ed287bca8ae57aef92c97f51a7ed8589e26 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Mon, 21 May 2012 16:53:29 +0200 Subject: [PATCH] Girocco::Project: Fix setgid bit being dropped in fork subdirectories --- Girocco/Project.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Girocco/Project.pm b/Girocco/Project.pm index 6d3fce1..cf35f15 100644 --- a/Girocco/Project.pm +++ b/Girocco/Project.pm @@ -155,9 +155,9 @@ sub _alternates_setup { my $forkee_name = get_forkee_name($self->{name}); my $forkee_path = get_forkee_path($self->{name}); return unless -d $forkee_path; - mkdir $self->{path}.'/refs'; chmod 0775, $self->{path}.'/refs'; - mkdir $self->{path}.'/objects'; chmod 0775, $self->{path}.'/objects'; - mkdir $self->{path}.'/objects/info'; chmod 0775, $self->{path}.'/objects/info'; + mkdir $self->{path}.'/refs'; chmod 02775, $self->{path}.'/refs'; + mkdir $self->{path}.'/objects'; chmod 02775, $self->{path}.'/objects'; + mkdir $self->{path}.'/objects/info'; chmod 02775, $self->{path}.'/objects/info'; # We set up both alternates and http_alternates since we cannot use # relative path in alternates - that doesn't work recursively. -- 2.11.4.GIT