diff --git a/plugins/dynamix/include/update.vfio-pci-cfg.php b/plugins/dynamix/include/update.vfio-pci-cfg.php index 0b14d4f8a..59045f8dd 100644 --- a/plugins/dynamix/include/update.vfio-pci-cfg.php +++ b/plugins/dynamix/include/update.vfio-pci-cfg.php @@ -22,7 +22,7 @@ $new = _var($_GET,'cfg'); $reply = 0; if ($new && $new != $old) { - rename($vfio, "$vfio.bak"); + copy($vfio, "$vfio.bak"); $reply = file_put_contents($vfio, $new)!==false ? 1 : 0; } echo $reply;