# Grant to appropriate users
my %acl;
&read_acl(undef, \%acl);
-my $fh;
+my $fh = "GRANTS";
&open_tempfile($fh, ">".&acl_filename());
my $u;
foreach $u (keys %acl) {
{
&lock_file($newmodule_users_file);
if ($_[0]) {
- my $fh;
+ my $fh = "NEWUSERS";
&open_tempfile($fh, ">$newmodule_users_file");
foreach my $u (@{$_[0]}) {
&print_tempfile($fh, "$u\n");
push(@$allupdates, @$updates);
};
}
- my $fh;
+ my $fh = "CACHE";
&open_tempfile($fh, ">$update_cache", 1);
&print_tempfile($fh, &serialise_variable($allupdates));
&close_tempfile($fh);
$bf = "$1/blocked";
}
my @rv;
-my $fh;
+my $fh = "BLOCKED";
&open_readfile($fh, $bf) || return ();
while(<$fh>) {
s/\r|\n//g;