Update VFIO: fix regression errors

This commit is contained in:
bergware
2023-03-13 13:26:13 +01:00
parent f53656c81e
commit ba067af612

View File

@@ -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;