]> git.proxmox.com Git - qemu-server.git/commitdiff
fix #1570: fix template backup with pigz
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 1 Dec 2017 10:43:23 +0000 (11:43 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 6 Dec 2017 13:54:00 +0000 (14:54 +0100)
when using pigz the resulting commandline would look like:

pigz -p 4>file

which resulted in pigz erroring out because it got no parameter for -p
(because the shell interpreted the 4>file as a file descriptor)

this patch adds a space so that the resulting line is
pigz -p 4 > file

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/VZDump/QemuServer.pm

index a6308293095fe673299ff113c19a67b6c17413db..42680f85de6a94a75220ffe3caa53fc1b73e34cf 100644 (file)
@@ -274,7 +274,7 @@ sub archive {
            $outcmd = "exec:cat";
        }
 
-       $outcmd .= ">$filename" if !$opts->{stdout};
+       $outcmd .= " > $filename" if !$opts->{stdout};
 
        my $cmd = ['/usr/bin/vma', 'create', '-v', '-c', $conffile];
        push @$cmd, '-c', $firewall if -e $firewall;