]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xend: Escape reserved sexpr characters
authorCole Robinson <crobinso@redhat.com>
Fri, 19 Nov 2010 15:51:57 +0000 (10:51 -0500)
committerCole Robinson <crobinso@redhat.com>
Mon, 22 Nov 2010 21:43:29 +0000 (16:43 -0500)
commit3afe5d402b54895b411f8d74bda82a32bc1ffa07
tree656b5f1dedc385e8a8899832ab9351092f2714b5
parent0af02cb2e8d8192958735880e135ab69beb437c5
xend: Escape reserved sexpr characters

If we don't escape ' or \ xend can't parse the generated sexpr. This
might over apply the EscapeSexpr routine, but it shouldn't hurt.
src/libvirt_private.syms
src/util/buf.c
src/util/buf.h
src/xen/xend_internal.c
tests/xml2sexprdata/xml2sexpr-escape.sexpr [new file with mode: 0644]
tests/xml2sexprdata/xml2sexpr-escape.xml [new file with mode: 0644]
tests/xml2sexprtest.c