3 # Wrapper for the chacl command
7 $default = ($_ =~ s/^default://);
8 s/^(other|mask):([rwx\-]{3})$/\1::\2/g;
16 $esc = quotemeta($ARGV[0]);
17 $acl = join(",", @acl);
18 $dacl = join(",", @dacl);
20 $out = `chacl -b $acl $dacl $esc 2>&1`;
24 $out = `chacl $acl $esc 2>&1 && chacl -D $esc 2>&1`;
27 $out = `chacl $acl $esc 2>&1`;
31 $out = `chacl -d $dacl $esc 2>&1 && chacl -R $esc 2>&1`;
34 $out = `chacl -B $esc 2>&1`;