fix the CDB support so we can work without it (but with a big warning)
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@275 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
606df3773c
commit
a979f8344f
@ -83,8 +83,10 @@ sub get_qmail_config {
|
|||||||
eval { require CDB_File };
|
eval { require CDB_File };
|
||||||
|
|
||||||
if ($@) {
|
if ($@) {
|
||||||
$self->log(LOGERROR, "No $configfile.cdb support, could not load CDB_File module: $@");
|
$self->log(LOGERROR, "No CDB Support! Did NOT read $configfile.cdb, could not load CDB_File module: $@");
|
||||||
|
return +{};
|
||||||
}
|
}
|
||||||
|
|
||||||
my %h;
|
my %h;
|
||||||
unless (tie(%h, 'CDB_File', "$configfile.cdb")) {
|
unless (tie(%h, 'CDB_File', "$configfile.cdb")) {
|
||||||
$self->log(LOGERROR, "tie of $configfile.cdb failed: $!");
|
$self->log(LOGERROR, "tie of $configfile.cdb failed: $!");
|
||||||
|
Loading…
Reference in New Issue
Block a user