From 162cf7d132f63b20f7d368156453fa6f561bfee6 Mon Sep 17 00:00:00 2001 From: Matt Sergeant Date: Fri, 15 Jul 2005 21:13:49 +0000 Subject: [PATCH] Notice /var/qmail/control dir (Joe Schaefer) git-svn-id: https://svn.perl.org/qpsmtpd/branches/0.31@509 958fd67b-6ff1-0310-b445-bb7760255be9 --- lib/Apache/Qpsmtpd.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Apache/Qpsmtpd.pm b/lib/Apache/Qpsmtpd.pm index 5161301..4808241 100644 --- a/lib/Apache/Qpsmtpd.pm +++ b/lib/Apache/Qpsmtpd.pm @@ -90,10 +90,13 @@ sub run { } sub config_dir { - my $self = shift; - return "$self->{qpdir}/config"; + my ($self, $config) = @_; + -e "$_/$config" and return $_ + for "$self->{qpdir}/config"; + return "/var/qmail/control"; } + sub plugin_dir { my $self = shift; return "$self->{qpdir}/plugins";