]> git.proxmox.com Git - pve-manager.git/commitdiff
vzdump: safer cp call
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 7 Jul 2016 08:22:24 +0000 (10:22 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 7 Jul 2016 08:52:58 +0000 (10:52 +0200)
PVE/VZDump.pm

index 1e00c2dbc3d9620adbab67d4fbaafccf4997142a..45baca6f337023cfff41d84179a15a99dc8b42ea 100644 (file)
@@ -1067,7 +1067,7 @@ sub exec_backup_task {
     close ($logfd) if $logfd;
     
     if ($task->{tmplog} && $task->{logfile}) {
-       system ("cp '$task->{tmplog}' '$task->{logfile}'");
+       system {'cp'} 'cp', $task->{tmplog}, $task->{logfile};
     }
 
     eval { $self->run_hook_script ('log-end', $task); };