aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/collectd5
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2015-03-28 20:29:29 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2015-03-28 20:29:29 +0000
commit5daf39735996d061c29f047f930e56f53d1a8fad (patch)
tree390d70a88c2aaa0d29423a371bf411e2163fd5e2 /net-mgmt/collectd5
parent9675d444e96c2c9c19d6937279e99df61f2a093c (diff)
downloadports-5daf39735996d061c29f047f930e56f53d1a8fad.tar.gz
ports-5daf39735996d061c29f047f930e56f53d1a8fad.zip
Fix broken curl_xml plugin.
Obtained from upstream (https://github.com/collectd/collectd/issues/931) Approved by: maintainer
Notes
Notes: svn path=/head/; revision=382553
Diffstat (limited to 'net-mgmt/collectd5')
-rw-r--r--net-mgmt/collectd5/files/patch-src-curl_xml.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-mgmt/collectd5/files/patch-src-curl_xml.c b/net-mgmt/collectd5/files/patch-src-curl_xml.c
new file mode 100644
index 000000000000..326b619ec786
--- /dev/null
+++ b/net-mgmt/collectd5/files/patch-src-curl_xml.c
@@ -0,0 +1,11 @@
+--- src/curl_xml.c.orig 2015-03-28 23:25:34.546602000 +0300
++++ src/curl_xml.c 2015-03-28 23:25:51.513304000 +0300
+@@ -385,7 +385,7 @@ static int cx_handle_instance_xpath (xml
+ /* If the base xpath returns more than one block, the result is assumed to be
+ * a table. The `Instance' option is not optional in this case. Check for the
+ * condition and inform the user. */
+- if (is_table)
++ if (is_table && (vl->type_instance == NULL))
+ {
+ WARNING ("curl_xml plugin: "
+ "Base-XPath %s is a table (more than one result was returned), "