mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-14 00:25:24 +00:00
vzdump: fix template backup to stdout
redirecting to the saved STDOUT in case of a template backup or a VM without any disks failed because of the erroneous '=': Backup of VM 123123 failed - command '/usr/bin/vma create -v -c [...]' failed: Bad filehandle: =5 at /usr/share/perl/5.28/IPC/Open3.pm line 58. https://forum.proxmox.com/threads/vzdump-to-stdout.69364 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
b57d4863e2
commit
6bb12239cc
@ -518,7 +518,7 @@ sub archive_vma {
|
||||
$self->loginfo(join(' ', @$cmd));
|
||||
|
||||
if ($opts->{stdout}) {
|
||||
$self->cmd($cmd, output => ">&=" . fileno($opts->{stdout}));
|
||||
$self->cmd($cmd, output => ">&" . fileno($opts->{stdout}));
|
||||
} else {
|
||||
$self->cmd($cmd);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user