From: Hielke Christian Braun Date: Tue, 18 Jul 2017 08:41:54 +0000 (+0200) Subject: gitweb: skip unreadable subdirectories X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/9a3817961a2ce50f05a19d3e5007a930fed096b82cc16404afa3a6a1bdee5f6f gitweb: skip unreadable subdirectories gitweb terminates and shows no project list, if it can not access a sub-directory in the project root directory while looking for projects to show. Work it around by skipping unreadable directories. Signed-off-by: Hielke Christian Braun Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 6f5ee84..d188faf 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -3072,6 +3072,8 @@ sub git_get_projects_list { return if (m!^[/.]$!); # only directories can be git repositories return unless (-d $_); + # need search permission + return unless (-x $_); # don't traverse too deep (Find is super slow on os x) # $project_maxdepth excludes depth of $projectroot if (($File::Find::name =~ tr!/!!) - $pfxdepth > $project_maxdepth) {