Skip to content

Commit

Permalink
A regular rename coe call can fail if it crosses filesystems, so try …
Browse files Browse the repository at this point in the history
…the mv command as well http://virtualmin.com/node/37524
  • Loading branch information
jcameron committed Jul 29, 2015
1 parent ef01659 commit 838f90c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mailboxes/boxes-lib.pl
Expand Up @@ -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;
Expand Down

0 comments on commit 838f90c

Please sign in to comment.