mirror of
https://github.com/webmin/webmin.git
synced 2026-06-21 11:50:25 +01:00
A regular rename coe call can fail if it crosses filesystems, so try the mv command as well http://virtualmin.com/node/37524
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user