[pmg-devel] [PATCH pmg-api 2/2] do not create /cluster/<cid> unconditionally
Stoiko Ivanov
s.ivanov at proxmox.com
Wed Nov 18 15:52:54 CET 2020
while looking through the spooldir creation we noticed the mkdir call
on a relative path. This creates a '/cluster/<cid>/' directory on each system
which has a cluster.conf (<cid> being the node's clusterid). This is not used
since the spooldirs are in '/var/spool/pmg/cluster/'
Simply drop the mkdir call, since the spooldirs get created upon cluster
creation (PMG::API2::Cluster::create) and joining to an existing cluster.
Reported-by: Dominik Csapak <d.csapak at proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
src/PMG/MailQueue.pm | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/PMG/MailQueue.pm b/src/PMG/MailQueue.pm
index e0f56b9..435f168 100644
--- a/src/PMG/MailQueue.pm
+++ b/src/PMG/MailQueue.pm
@@ -285,7 +285,6 @@ sub quarantine_mail {
eval {
if ($lcid) {
my $subdir = "cluster/$lcid/$subpath";
- mkpath $subdir;
($fh, $uid, $path) = new_fileid ($spooldir, $subdir);
} else {
($fh, $uid, $path) = new_fileid ($spooldir, $subpath);
--
2.20.1
More information about the pmg-devel
mailing list