Sys-Config-Manage
view release on metacpan or search on metacpan
lib/Sys/Config/Manage/Ownership.pm view on Meta::CPAN
#get the perms for the file we will set it on
my $gid=$self->getGID( $configDir, $files[$int] );
if( $self->error ){
warn($self->{module}.' '.$method.': Sys::Config::Manage::Ownership->getGID errored');
return undef;
}
#try to chmod it
if(!chmod( $uid, $gid, $files[$int] )){
$self->{error}='17';
$self->{errorString}='chown( '.$uid.', '.$gid.', "'.$files[$int].'") errored';
$self->warn;
return undef;
}
$int++;
}
return 1;
}
( run in 0.560 second using v1.01-cache-2.11-cpan-5511b514fd6 )