From d5e667d0ee452ee8aa638af6bd19990e419fee5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 2 Mar 2019 16:31:17 +0100 Subject: [PATCH] qvm-copy: fix handling VM names starting with dash Reported by @v6ak --- file-copy-vm/qvm-copy-to-vm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file-copy-vm/qvm-copy-to-vm b/file-copy-vm/qvm-copy-to-vm index a528881..7dde3a6 100644 --- a/file-copy-vm/qvm-copy-to-vm +++ b/file-copy-vm/qvm-copy-to-vm @@ -36,7 +36,7 @@ mkfifo -- "$RESPONSE" # can't use $@ with --localcmd, and $* would fail on whitespace /usr/lib/qubes/qfile-dom0-agent "$@" <"$RESPONSE" | -qvm-run --pass-io --service "$VM" "qubes.Filecopy" >"$RESPONSE" +qvm-run --pass-io --service -- "$VM" "qubes.Filecopy" >"$RESPONSE" if [ "${0##*/}" = "qvm-move-to-vm" ]; then rm -rf -- "$@"