From 922e6f749a2a7231dee739e1f0267894df96a868 Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Fri, 26 Mar 2021 18:43:56 +0100 Subject: [PATCH] mailqueue: fixup rmtree/mkpath usage the mkpath and rmtree functions [0] seem to interpret their second and third argument as 'verbose' and 'mode', leading to wrongly created spooldirs. Signed-off-by: Stoiko Ivanov --- src/PMG/MailQueue.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PMG/MailQueue.pm b/src/PMG/MailQueue.pm index d27f5b3..2841b07 100644 --- a/src/PMG/MailQueue.pm +++ b/src/PMG/MailQueue.pm @@ -24,20 +24,20 @@ sub create_spooldirs { my ($lcid, $cleanup) = @_; # if requested, remove any stale date - rmtree( + rmtree([ "$spooldir/cluster", "$spooldir/active", "$spooldir/virus", "$spooldir/spam", "$spooldir/attachment", - ) if $cleanup; + ]) if $cleanup; - mkpath( + mkpath([ "$spooldir/active", "$spooldir/spam", "$spooldir/virus", "$spooldir/attachment", - ); + ]); if ($lcid) { mkpath "$spooldir/cluster/$lcid/virus"; -- 2.39.2