提交 249dab80 编写于 作者: L Lukáš Doktor

qemu.migrate: Quote the paths in gzip command

The path in gzip command might contain spaces or "weird" characters.
Migrate command already uses double-quotes so let's use the single
quotes to avoid the need to escape characters in the src/dst path.

Tested with:

    exec:gzip -c > '/var/tmp/avocado_u8sHJg/avocado_job_OHWFL5/1-\
    functional_rpm_dvd type_specific.io-github-autotest-qemu.migrate\
    .with_reboot.exec.gzip_exec;-e630/migrateE8PDpZ/migrate_file'
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 a743b1ec
......@@ -27,8 +27,8 @@
variants:
- @default_exec:
- gzip_exec:
migration_exec_cmd_src = "gzip -c > %s"
migration_exec_cmd_dst = "gzip -c -d %s"
migration_exec_cmd_src = "gzip -c > '%s'"
migration_exec_cmd_dst = "gzip -c -d '%s'"
- fd:
migration_protocol = "fd"
- mig_cancel:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册