aboutsummaryrefslogtreecommitdiff
path: root/perl/Wallet
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-11-15 05:49:05 +0000
committerRuss Allbery <rra@stanford.edu>2007-11-15 05:49:05 +0000
commit480c823eca7676ae610642b2357af9c12e5c2e24 (patch)
tree9258f369e8599fa7b630bee81e20815dd9dc3b67 /perl/Wallet
parent2393ffbc3c52c6552e00212d5209d6b870a55d4e (diff)
Use the right remctld configuration for the ACL verifier. Don't produce
Perl warnings if the NetDB roles are empty.
Diffstat (limited to 'perl/Wallet')
-rw-r--r--perl/Wallet/ACL/NetDB.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl/Wallet/ACL/NetDB.pm b/perl/Wallet/ACL/NetDB.pm
index 23efa9d..6437ebc 100644
--- a/perl/Wallet/ACL/NetDB.pm
+++ b/perl/Wallet/ACL/NetDB.pm
@@ -99,6 +99,7 @@ sub check {
}
} while ($output->type eq 'output');
if ($status == 0) {
+ $roles ||= '';
my @roles = split (' ', $roles);
for my $role (@roles) {
return 1 if $role eq 'admin';