Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: use filetest to allow ACLs
author
Guillaume Castagnino
<casta@xwing.info>
Thu, 19 Oct 2017 07:32:46 +0000
(09:32 +0200)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
fc849d8
)
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index 9208f42ed1753530b8ea46761f8ecc61bbe95976..6ac49eaf3e6477eb9eddaeec81a39db11f586551 100755
(executable)
--- 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);