qemu: Fix escape_monitor(escape_shell(command))
qemu: Fix escape_monitor(escape_shell(command))

Suspending a VM which contains shell meta characters doesn't work with
libvirt-0.8.7:
/var/log/libvirt/qemu/andreas_231-ne\ doch\ nicht.log:
  sh: -c: line 0: syntax error near unexpected token `doch'
  sh: -c: line 0: `cat | { dd bs=4096 seek=1 if=/dev/null && dd bs=1048576; }

Although target="andreas_231-ne doch nicht" contains shell meta
characters (here: blanks), they are not properly escaped by
src/qemu/qemu_monitor_{json,text}.c#qemuMonitor{JSON,Text}MigrateToFile()

First, the filename needs to be properly escaped for the shell, than
this command line has to be properly escaped for qemu again.

For this to work, remove the old qemuMonitorEscapeArg() wrapper, rename
qemuMonitorEscape() to it removing the handling for shell=TRUE, and
implement a new qemuMonitorEscapeShell() returning strings using single
quotes.

Using double quotes or escaping special shell characters with backslashes
would also be possible, but the set of special characters heavily
depends on the concrete shell (dsh, bash, zsh) and its setting (history
expansion, interactive use, ...)

Signed-off-by: Philipp Hahn <8cb7a2c205789112a9f61bc3102305826b6a8db1@univention.de>

bjzhang/libvirt,rlaager/libvirt,cbosdo/libvirt,kantai/libvirt-vfork,agx/libvirt,elmarco/libvirt,dumbbell/libvirt,jeckersb/libvirt,foomango/libvirt,fabianfreyer/libvirt,danwent/libvirt-ovs,wiedi/libvirt,rmarwaha/libvirt,jeckersb/libvirt,eskultety/libvirt,trainstack/libvirt,datto/libvirt,zhlcindy/libvirt-1.1.4-maintain,datto/libvirt,agx/libvirt,taget/libvirt,olafhering/libvirt,zhlcindy/libvirt-1.1.4-maintain,shugaoye/libvirt,shugaoye/libvirt,zhlcindy/libvirt-1.1.4-maintain,novel/fbsd-libvirt,fabianfreyer/libvirt,elmarco/libvirt,rbu/libvirt,bjzhang/libvirt,cbosdo/libvirt,rlaager/libvirt,novel/fbsd-libvirt,warewolf/libvirt,jfehlig/libvirt,datto/libvirt,emaste/libvirt,elmarco/libvirt,libvirt/libvirt,datto/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,wiedi/libvirt,crobinso/libvirt,rbu/libvirt,leilihh/libvirt,fabianfreyer/libvirt,emaste/libvirt,taget/libvirt,agx/libvirt,trainstack/libvirt,iam-TJ/libvirt,andreabolognani/libvirt,trainstack/libvirt,usc-isi/libvirt,iam-TJ/libvirt,bjzhang/libvirt,crobinso/libvirt,zippy2/libvirt,jeckersb/libvirt,dumbbell/libvirt,VenkatDatta/libvirt,leilihh/libvirt,taget/libvirt,warewolf/libvirt,soulxu/libvirt-xuhj,danwent/libvirt-ovs,andreabolognani/libvirt,elmarco/libvirt,eskultety/libvirt,novel/fbsd-libvirt,zhlcindy/libvirt-1.1.4-maintain,dumbbell/libvirt,rbu/libvirt,shugaoye/libvirt,soulxu/libvirt-xuhj,dumbbell/libvirt,cbosdo/libvirt,trainstack/libvirt,taget/libvirt,warewolf/libvirt,rmarwaha/libvirt1,novel/fbsd-libvirt,kantai/libvirt-vfork,cbosdo/libvirt,shugaoye/libvirt,bjzhang/libvirt,warewolf/libvirt,dumbbell/libvirt,fabianfreyer/libvirt,rbu/libvirt,usc-isi/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,eskultety/libvirt,wiedi/libvirt,olafhering/libvirt,jeckersb/libvirt,trainstack/libvirt,rmarwaha/libvirt1,rbu/libvirt,usc-isi/libvirt,foomango/libvirt,jeckersb/libvirt,rlaager/libvirt,rlaager/libvirt,emaste/libvirt,jfehlig/libvirt,cbosdo/libvirt,rmarwaha/libvirt,rmarwaha/libvirt,nertpinx/libvirt,iam-TJ/libvirt,jardasgit/libvirt,jeckersb/libvirt,usc-isi/libvirt,kantai/libvirt-vfork,taget/libvirt,danwent/libvirt-ovs,wiedi/libvirt,leilihh/libvirt,libvirt/libvirt,kantai/libvirt-vfork,datto/libvirt,libvirt/libvirt,jfehlig/libvirt,emaste/libvirt,rmarwaha/libvirt,andreabolognani/libvirt,wiedi/libvirt,leilihh/libvirt,zippy2/libvirt,leilihh/libvirt,emaste/libvirt,foomango/libvirt,agx/libvirt,foomango/libvirt,nertpinx/libvirt,jeckersb/libvirt,emaste/libvirt,VenkatDatta/libvirt,soulxu/libvirt-xuhj,elmarco/libvirt,iam-TJ/libvirt,leilihh/libvirt,siboulet/libvirt-openvz,warewolf/libvirt,usc-isi/libvirt,agx/libvirt,iam-TJ/libvirt,wiedi/libvirt,VenkatDatta/libvirt,olafhering/libvirt,libvirt/libvirt,wiedi/libvirt,crobinso/libvirt,novel/fbsd-libvirt,novel/fbsd-libvirt,rmarwaha/libvirt1,siboulet/libvirt-openvz,rmarwaha/libvirt1,siboulet/libvirt-openvz,rmarwaha/libvirt1,siboulet/libvirt-openvz,trainstack/libvirt,nertpinx/libvirt,eskultety/libvirt,zippy2/libvirt,rmarwaha/libvirt,novel/fbsd-libvirt,siboulet/libvirt-openvz,novel/fbsd-libvirt,emaste/libvirt,jardasgit/libvirt,eskultety/libvirt,rmarwaha/libvirt,soulxu/libvirt-xuhj,danwent/libvirt-ovs,andreabolognani/libvirt,shugaoye/libvirt,jardasgit/libvirt,warewolf/libvirt,jardasgit/libvirt,rmarwaha/libvirt1,olafhering/libvirt,warewolf/libvirt,trainstack/libvirt,dumbbell/libvirt,danwent/libvirt-ovs,iam-TJ/libvirt,fabianfreyer/libvirt,soulxu/libvirt-xuhj,crobinso/libvirt,zippy2/libvirt,rlaager/libvirt,nertpinx/libvirt,bjzhang/libvirt,foomango/libvirt,iam-TJ/libvirt,kantai/libvirt-vfork,novel/fbsd-libvirt,jfehlig/libvirt,andreabolognani/libvirt,zhlcindy/libvirt-1.1.4-maintain