qvm-copy: fix handling VM names starting with dash
Reported by @v6ak
This commit is contained in:
parent
e5deabe0aa
commit
d5e667d0ee
@ -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…
Reference in New Issue
Block a user