CfgTie
view release on metacpan or search on metacpan
lib/CfgTie/TieShadow.pm view on Meta::CPAN
}
my $X = $shadowmod_opt2->{$lkey};
if (!defined $X) {$X='';}
#Change the system tables
system "$shadowmod ".$shadowmod_opt->{$lkey}." $val $X ".$self->{name}.
"\n";
#If bad things should throw exception
if ($FSUp) {chown $val,-1, @FSet;}
$self->{$lkey} = $val;
}
else
{
#Extra setting that will be lost... 8(
$self->{$lkey}=$val;
}
}
lib/CfgTie/TieUser.pm view on Meta::CPAN
}
my $X = $usermod_opt2->{$lkey};
if (!defined $X) {$X='';}
#Change the system tables
CfgTie::filever::system("$usermod ".$usermod_opt->{$lkey}." $val $X ".
$self->{name}."\n");
#If bad things should throw exception
if ($FSUp) {chown $val,-1, @FSet;}
$self->{$lkey} = $val;
}
else
{
#Extra setting that will be lost... 8(
$self->{$lkey}=$val;
}
}
lib/CfgTie/filever.pm view on Meta::CPAN
if (scalar @S)
{
#Migrate us to some backup copies, use one more than default so we
#can unroll
&Roll($Old,$RollDepth+1);
# Modify the permissions of the new file to match that of the old one.
if (!chmod($S[2], $New) ||
# Modify the ownership of the new file to match that of the old one.
!chown($S[4], $S[5], $New)||
!rename($New, $Old))
{
die "bad things happened: $New doesn't exist? $!\n";
&Unroll($Old,$RollDepth+1);
return -1;
}
}
else
{
( run in 2.411 seconds using v1.01-cache-2.11-cpan-71847e10f99 )