qvm-copy: fix handling VM names starting with dash

Reported by @v6ak
pull/49/head
Marek Marczykowski-Górecki 5 years ago
parent e5deabe0aa
commit d5e667d0ee
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

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

Loading…
Cancel
Save