OSDN Git Service

gitweb: use filetest to allow ACLs
authorGuillaume Castagnino <casta@xwing.info>
Thu, 19 Oct 2017 07:32:46 +0000 (09:32 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Oct 2017 01:14:38 +0000 (10:14 +0900)
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>
gitweb/gitweb.perl

index 9208f42..6ac49ea 100755 (executable)
@@ -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);