]> xenbits.xensource.com Git - libvirt.git/commit
Fix Xen SEXPR generation to properly quote strings containing ()
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 23 Aug 2010 13:00:22 +0000 (14:00 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 13 Oct 2010 15:42:48 +0000 (16:42 +0100)
commit3a092f38994a57f3c12397464f7532cb82e15e14
treedd1d99c2ea5f3df70a9183a6dc3c59756e22cd56
parent4435f3c4779b8e2a63166ebe987979e921afa5e0
Fix Xen SEXPR generation to properly quote strings containing ()

* src/xen/sexpr.c: Ensure () are escaped in sexpr2string
* tests/sexpr2xmldata/sexpr2xml-boot-grub.sexpr,
  tests/sexpr2xmldata/sexpr2xml-boot-grub.xml,
  tests/xml2sexprdata/xml2sexpr-boot-grub.sexpr,
  tests/xml2sexprdata/xml2sexpr-boot-grub.xml: Data files to
  check escaping
* tests/sexpr2xmltest.c, tests/xml2sexprtest.c: Add boot-grub
  escaping test case
src/xen/sexpr.c
tests/sexpr2xmldata/sexpr2xml-boot-grub.sexpr [new file with mode: 0644]
tests/sexpr2xmldata/sexpr2xml-boot-grub.xml [new file with mode: 0644]
tests/sexpr2xmltest.c
tests/xml2sexprdata/xml2sexpr-boot-grub.sexpr [new file with mode: 0644]
tests/xml2sexprdata/xml2sexpr-boot-grub.xml [new file with mode: 0644]
tests/xml2sexprtest.c