summaryrefslogtreecommitdiff
path: root/gitweb/gitweb.perl
diff options
context:
space:
mode:
authorLibravatar Guillaume Castagnino <casta@xwing.info>2017-10-19 09:32:46 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-10-24 10:14:38 +0900
commit411ddf9eca67f77d09ce72a832332af9b9330569 (patch)
treeac7463de415c1a968bd0f21a7f24d03f73a5feba /gitweb/gitweb.perl
parentGit 2.14.3 (diff)
downloadtgif-411ddf9eca67f77d09ce72a832332af9b9330569.tar.xz
gitweb: use filetest to allow ACLs
In commit 46a1385 (gitweb: skip unreadable subdirectories, 2017-07-18) we forgot to handle non-unix ACLs as well. Fix this. Signed-off-by: Guillaume Castagnino <casta@xwing.info> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.perl')
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 2 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 9208f42ed1..6ac49eaf3e 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -10,6 +10,8 @@
use 5.008;
use strict;
use warnings;
+# handle ACL in file access tests
+use filetest 'access';
use CGI qw(:standard :escapeHTML -nosticky);
use CGI::Util qw(unescape);
use CGI::Carp qw(fatalsToBrowser set_message);