3 # Gets the ACLs for some file
5 require './file-lib.pl';
7 &switch_acl_uid_and_chroot();
8 print "Content-type: text/plain\n\n";
9 if (!&can_access($in{'file'})) {
10 print $text{'facl_eaccess'},"\n";
13 $getfacl = $config{'getfacl'};
14 if ($getfacl =~ /^\.\//) {
15 $getfacl =~ s/^\./$module_root_directory/;
18 if ($in{'file'} eq '/') {
22 $in{'file'} =~ s/^\///;
24 $out = &backquote_command($getfacl." ".quotemeta($in{'file'})." 2>&1");
29 foreach $l (split(/\n/, $out)) {
32 push(@rv, $l) if ($l =~ /\S/);
35 print "Filesystem does not support ACLs\n";