AFS

 view release on metacpan or  search on metacpan

examples/v2/acl/modifyacl  view on Meta::CPAN

#!/usr/local/bin/perl

use blib;
use strict;
use warnings;

use AFS::ACL;

die "Usage: $0 dir \n" if $#ARGV != 0;
my $dir = shift;

system "fs la $dir";

my $new_acl = AFS::ACL->new({ 'guest', AFS::ACL->crights('all')});
$AFS::CODE and print "AFS::CODE = $AFS::CODE\n";

my $ok = $new_acl->modifyacl($dir);
if ($AFS::CODE) { print "AFS::CODE = $AFS::CODE\n"; }
else            { print "OK = $ok \n"; }

system "fs la $dir";

$new_acl->set('guest', 'none');

$ok = $new_acl->modifyacl($dir);
if ($AFS::CODE) { print "AFS::CODE = $AFS::CODE\n"; }
else            { print "OK = $ok \n"; }

system "fs la $dir";

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.011 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )