qvm-copy: fix handling VM names starting with dash

Reported by @v6ak
This commit is contained in:
Marek Marczykowski-Górecki 2019-03-02 16:31:17 +01:00
parent e5deabe0aa
commit d5e667d0ee
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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 -- "$@"