diff options
author | Hielke Christian Braun <hcb@unco.de> | 2017-07-18 11:41:54 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-18 22:10:17 +0300 |
commit | 46a13857fc036b54ac2ddd0a218e5cc171aa7bd9 (patch) | |
tree | d7eaf440952bacf1c1f5fbfb78647e2acadd2f93 | |
parent | 08f9c32463bf9e578acb7ac5f77afd36e803c6bc (diff) |
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 <hcb@unco.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-x | gitweb/gitweb.perl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index d8209c7a02..8318411b91 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -3071,6 +3071,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) { |