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 <s.ivanov@proxmox.com>
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";