Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 885457 Details for
Bug 1086699
libguestfs should parse XML with XML_PARSE_NONET flags
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
xmlParse{File,Memory} -> xmlRead{File,Memory}
xml.diff (text/plain), 1.53 KB, created by
Pino Toscano
on 2014-04-11 14:29:41 UTC
(
hide
)
Description:
xmlParse{File,Memory} -> xmlRead{File,Memory}
Filename:
MIME Type:
Creator:
Pino Toscano
Created:
2014-04-11 14:29:41 UTC
Size:
1.53 KB
patch
obsolete
>diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c >index 4eba851..bc295b4 100644 >--- a/src/launch-libvirt.c >+++ b/src/launch-libvirt.c >@@ -611,7 +611,8 @@ parse_capabilities (guestfs_h *g, const char *capabilities_xml, > size_t seen_qemu, seen_kvm; > int force_tcg; > >- doc = xmlParseMemory (capabilities_xml, strlen (capabilities_xml)); >+ doc = xmlReadMemory (capabilities_xml, strlen (capabilities_xml), >+ NULL, NULL, XML_PARSE_NONET); > if (doc == NULL) { > error (g, _("unable to parse capabilities XML returned by libvirt")); > return -1; >diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c >index 587bf65..d148d4a 100644 >--- a/src/libvirt-domain.c >+++ b/src/libvirt-domain.c >@@ -750,7 +750,8 @@ get_domain_xml (guestfs_h *g, virDomainPtr dom) > } > > /* Parse the domain XML into an XML document. */ >- doc = xmlParseMemory (xml, strlen (xml)); >+ doc = xmlReadMemory (xml, strlen (xml), >+ NULL, NULL, XML_PARSE_NONET); > if (doc == NULL) { > error (g, _("unable to parse XML information returned by libvirt")); > return NULL; >diff --git a/src/osinfo.c b/src/osinfo.c >index f0ab379..dfffaa9 100644 >--- a/src/osinfo.c >+++ b/src/osinfo.c >@@ -269,7 +269,7 @@ read_osinfo_db_xml (guestfs_h *g, const char *filename) > > snprintf (pathname, pathname_len, "%s/%s", LIBOSINFO_DB_OS_PATH, filename); > >- doc = xmlParseFile (pathname); >+ doc = xmlReadFile (pathname, NULL, XML_PARSE_NONET); > if (doc == NULL) { > debug (g, "osinfo: unable to parse XML file %s", pathname); > return 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1086699
: 885457