From ba067af6124af2179b28b2cedc14ae50c628bcbb Mon Sep 17 00:00:00 2001 From: bergware Date: Mon, 13 Mar 2023 13:26:13 +0100 Subject: [PATCH] Update VFIO: fix regression errors --- plugins/dynamix/include/update.vfio-pci-cfg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;