From c4c47bd225adc0910996170387d14f76facd8ade Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 24 Oct 2006 06:55:44 +0200 Subject: [PATCH] chmod created subdirectories --- cgi/Git/RepoCGI.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgi/Git/RepoCGI.pm b/cgi/Git/RepoCGI.pm index e7bf7c2..b5e8a6d 100644 --- a/cgi/Git/RepoCGI.pm +++ b/cgi/Git/RepoCGI.pm @@ -236,8 +236,9 @@ sub _mkdir_forkees { pop @pelems; # do not create dir for the project itself my $path = $self->{base_path}; foreach my $pelem (@pelems) { - (-d "$path/$pelem" ) or mkdir "$path/$pelem" or die "mkdir $path/$pelem: $!"; $path .= "/$pelem"; + (-d "$path") or mkdir $path or die "mkdir $path: $!"; + chmod 0775, $path or die "chmod $path: $!"; } } -- 2.11.4.GIT