Re: [Qemu-devel] [PATCH 1/2] Escape filenames in monitor

2006-12-17 Thread Anthony Liguori
Julian Seward wrote: On Saturday 16 December 2006 21:11, Anthony Liguori wrote: info block is impossible to parse reliably because there is no escaping done on the filename. Don't you also need to convert \ to \\ ? Else any \ which was in the original string will confuse the parser of

Re: [Qemu-devel] [PATCH 1/2] Escape filenames in monitor

2006-12-17 Thread Julian Seward
On Saturday 16 December 2006 21:11, Anthony Liguori wrote: > info block is impossible to parse reliably because there is no escaping > done on the filename. Don't you also need to convert \ to \\ ? Else any \ which was in the original string will confuse the parser of the escaped output. J ___

[Qemu-devel] [PATCH 1/2] Escape filenames in monitor

2006-12-16 Thread Anthony Liguori
info block is impossible to parse reliably because there is no escaping done on the filename. A really unfortunately name like "Ugly backing_file=foo" would result in: hda: type=hd removable=0 file=Ugly backing_file=foo ro=0 drv=qcow Which is ambiguous when compared to a file named "Ugly" wit