Skip to content

Commit

Permalink
qvm-copy: fix handling VM names starting with dash
Browse files Browse the repository at this point in the history
Reported by @v6ak
  • Loading branch information
marmarek committed Mar 2, 2019
1 parent e5deabe commit d5e667d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file-copy-vm/qvm-copy-to-vm
Original file line number Diff line number Diff line change
Expand Up @@ -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 -- "$@"
Expand Down

0 comments on commit d5e667d

Please sign in to comment.