]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/API2/Nodes.pm
aplinfo: replace system() with run_command/rename
[pve-manager.git] / PVE / API2 / Nodes.pm
index 8487518cad24cbce3b40c0a097f5745a580f0311..93e793e88a15170883306fbb94a8a59fa7cdf94d 100644 (file)
@@ -1133,7 +1133,7 @@ __PACKAGE__->register_method({
                    die "wrong checksum: $md5 != $pd->{md5sum}\n";
                }
 
-               if (system ('mv', $tmpdest, $dest) != 0) {
+               if (!rename($tmpdest, $dest)) {
                    die "unable to save file - $!\n";
                }
            };