From 838f90c8d7e6462a7df838cc44ebebb3ecbfc8a8 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 28 Jul 2015 22:08:25 -0700 Subject: [PATCH] A regular rename coe call can fail if it crosses filesystems, so try the mv command as well http://virtualmin.com/node/37524 --- mailboxes/boxes-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailboxes/boxes-lib.pl b/mailboxes/boxes-lib.pl index 9abc4128e..db98432f6 100755 --- a/mailboxes/boxes-lib.pl +++ b/mailboxes/boxes-lib.pl @@ -2958,7 +2958,7 @@ sub rename_as_mail_user { my ($oldfile, $newfile) = @_; my $switched = &switch_to_mail_user(); -my $rv = rename($oldfile, $newfile); +my $rv = &rename_file($oldfile, $newfile); if ($switched) { $) = 0; $> = 0;