diff --git a/mailboxes/boxes-lib.pl b/mailboxes/boxes-lib.pl index 9abc4128e6..db98432f67 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;