mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
use a safe function to rename a file
This commit is contained in:
@@ -56,7 +56,7 @@ if (!@index) {
|
||||
push(@index, $bak) if (-r "$dir/$bak");
|
||||
}
|
||||
push(@index, "$in{'wav_filename'}.rmd");
|
||||
system("mv $rmdfile $dir/$in{'wav_filename'}.rmd");
|
||||
&rename_file($rmdfile, "$dir/$in{'wav_filename'}.rmd");
|
||||
&open_lock_tempfile(INDEX, ">$index");
|
||||
&print_tempfile(INDEX, map { "$_\n" } @index);
|
||||
&close_tempfile(INDEX);
|
||||
|
||||
Reference in New Issue
Block a user