Ensure auto-whitelist is read as the correct user

This commit is contained in:
Jamie Cameron
2017-12-11 23:25:03 -08:00
parent 49a1d16c4f
commit fa81a4ebfe

View File

@@ -21,12 +21,16 @@ endpwent();
foreach $u (@users) {
next if (!&can_edit_awl($u));
print "doing $u<br>\n";
&open_auto_whitelist_dbm($u) || next;
foreach $k (keys %awl) {
delete($awl{$k});
$count++;
}
&close_auto_whitelist_dbm();
&eval_as_unix_user($u->[0],
sub
{
&open_auto_whitelist_dbm($u) || next;
foreach $k (keys %awl) {
delete($awl{$k});
$count++;
}
&close_auto_whitelist_dbm();
});
$ucount++;
}
endpwent();