Code

Merge branch 'collectd-5.2' into collectd-5.3
authorFlorian Forster <octo@collectd.org>
Thu, 30 May 2013 07:00:09 +0000 (09:00 +0200)
committerFlorian Forster <octo@collectd.org>
Thu, 30 May 2013 07:00:09 +0000 (09:00 +0200)
1  2 
src/collectd.conf.pod
src/configfile.c
src/types.db

Simple merge
index ac5e8edcb94f2bfda66c5eefab67dfab3c66e6db,be777c52a02cbb0074c405fa7909ab0a3968c3b9..154c041cee2d8b6d01ff4021c723810993c91dac
@@@ -572,22 -562,9 +572,22 @@@ static int cf_include_all (oconfig_item
                        continue;
                }
  
 -              new = cf_read_generic (old->values[0].value.string, depth + 1);
 +              for (j = 0; j < old->children_num; ++j)
 +              {
 +                      oconfig_item_t *child = old->children + j;
 +
 +                      if (strcasecmp (child->key, "Filter") == 0)
 +                              cf_util_get_string (child, &pattern);
 +                      else
 +                              ERROR ("configfile: Option `%s' not allowed in <Include> block.",
 +                                              child->key);
 +              }
 +
 +              new = cf_read_generic (old->values[0].value.string, pattern, depth + 1);
 +              sfree (pattern);
 +
                if (new == NULL)
-                       continue;
+                       return (-1);
  
                /* Now replace the i'th child in `root' with `new'. */
                cf_ci_replace_child (root, new, i);
        return (0);
  } /* int cf_include_all */
  
 -static oconfig_item_t *cf_read_file (const char *file, int depth)
 +static oconfig_item_t *cf_read_file (const char *file,
 +              const char *pattern, int depth)
  {
        oconfig_item_t *root;
+       int status;
  
        assert (depth < CF_MAX_DEPTH);
  
diff --cc src/types.db
Simple merge