search for: xmlcopynod

Displaying 6 results from an estimated 6 matches for "xmlcopynod".

Did you mean: xmlcopynode
2015 Nov 12
1
[PATCH] inspector: --xpath: Copy node to new document (RHBZ#1281577).
...: xmlDoRead (parser.c:15295) ==2254== by 0x40587D: do_xpath (inspector.c:772) ==2254== by 0x40587D: main (inspector.c:250) The cause appears to be that when copying the matching node(s) found by the xpath expression, we have to copy them into the new document (using xmlDocCopyNode instead of xmlCopyNode). This bug has existed since this functionality was originally added in commit d1ee71782ace98a11c5aabaf1f9fd5f601e08367. --- inspector/inspector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inspector/inspector.c b/inspector/inspector.c index d0013ed..dd5be44 100644 --- a...
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...ot;%s: unable to parse XML from stdin\n"), guestfs_int_program_name); + fprintf (stderr, _("%s: unable to parse XML from stdin\n"), + guestfs_int_program_name); exit (EXIT_FAILURE); } @@ -808,14 +810,16 @@ do_xpath (const char *query) } wrnode = xmlCopyNode (nodes->nodeTab[i], 1); if (wrnode == NULL) { - fprintf (stderr, _("%s: xmlCopyNode failed\n"), guestfs_int_program_name); + fprintf (stderr, _("%s: xmlCopyNode failed\n"), + guestfs_int_program_name); exit (EXIT_FAILURE);...
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
...guestfs_int_program_name); - exit (EXIT_FAILURE); - } + if (wrdoc == NULL) + error (EXIT_FAILURE, 0, _("xmlNewDoc failed")); wrnode = xmlDocCopyNode (nodes->nodeTab[i], wrdoc, 1); - if (wrnode == NULL) { - fprintf (stderr, _("%s: xmlCopyNode failed\n"), - guestfs_int_program_name); - exit (EXIT_FAILURE); - } + if (wrnode == NULL) + error (EXIT_FAILURE, 0, _("xmlCopyNode failed")); xmlDocSetRootElement (wrdoc, wrnode); - if (xmlSaveDoc (saveCtx, wrdoc) == -1) { -...
2015 Oct 05
3
[PATCH 1/2] Change 'fprintf (stdout,...)' -> printf.
Result of earlier copy and paste. --- align/scan.c | 35 ++++++++++--------- cat/cat.c | 39 +++++++++++---------- cat/filesystems.c | 69 +++++++++++++++++++------------------- cat/log.c | 35 ++++++++++--------- cat/ls.c | 61 +++++++++++++++++---------------- df/main.c | 43 ++++++++++++------------ diff/diff.c | 67
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
Wherever we had code which did: if (something_bad) { perror (...); exit (EXIT_FAILURE); } replace this with use of the error(3) function: if (something_bad) error (EXIT_FAILURE, errno, ...); The error(3) function is supplied by glibc, or by gnulib on platforms which don't have it, and is much more flexible than perror(3). Since we already use error(3), there seems to be
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers. These aren't valid for global names in C++. (http://stackoverflow.com/a/228797) These large but completely mechanical patches change the illegal identifiers to legal ones. Rich.