qvm-copy-to-vm: fix handling empty target VM

This means "default" in Qubes 4.0.

QubesOS/qubes-issues#910
This commit is contained in:
Marek Marczykowski-Górecki 2017-05-17 14:22:10 +02:00
parent d73221ba3b
commit eef6bbe360
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -41,7 +41,7 @@ if [ $PROGRESS_TYPE = console ] ; then
export FILECOPY_TOTAL_SIZE=$(du --apparent-size -c -- "$@" 2> /dev/null | tail -1 | cut -f 1)
fi
/usr/lib/qubes/qrexec-client-vm $VM qubes.Filecopy /usr/lib/qubes/qfile-agent "$@"
/usr/lib/qubes/qrexec-client-vm "$VM" qubes.Filecopy /usr/lib/qubes/qfile-agent "$@"
if [ "${0##*/}" = "qvm-move-to-vm" ]; then
rm -rf -- "$@"