Merge branch 'gc/gitweb-filetest-acl'
authorJunio C Hamano <gitster@pobox.com>
Mon, 6 Nov 2017 05:24:30 +0000 (14:24 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Nov 2017 05:24:30 +0000 (14:24 +0900)
"gitweb" checks if a directory is searchable with Perl's "-x"
operator, which can be enhanced by using "filetest 'access'"
pragma, which now we do.

* gc/gitweb-filetest-acl:
gitweb: use filetest to allow ACLs

gitweb/gitweb.perl
index 959f04b494e610258488867aa7de013a3477e5fc..2417057f2bc61a98e68dc6c817e456a21bf6044e 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);