diff options
author | Guillaume Castagnino <casta@xwing.info> | 2017-10-19 09:32:46 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-24 10:14:38 +0900 |
commit | 411ddf9eca67f77d09ce72a832332af9b9330569 (patch) | |
tree | ac7463de415c1a968bd0f21a7f24d03f73a5feba /gitweb/gitweb.perl | |
parent | fc849d8d6b90e5c1e0c37bc0d60dd92b2fe7347f (diff) | |
download | git-411ddf9eca67f77d09ce72a832332af9b9330569.tar.gz |
gitweb: use filetest to allow ACLsgc/gitweb-filetest-acl
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-x | gitweb/gitweb.perl | 2 |
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); |