config: Added support for specifying include filter patterns.
authorSebastian Harl <sh@tokkee.org>
Sat, 24 Nov 2012 09:26:20 +0000 (10:26 +0100)
committerSebastian Harl <sh@tokkee.org>
Sat, 24 Nov 2012 09:26:20 +0000 (10:26 +0100)
commit76910471b1d2b1d5f43d49286bf1f9a03a060f1c
tree0ce1f3ac2761995f5d68e0975509868c2a1c4e9a
parent16202999622d778521903ca2feef7d55c5b1b5b3
config: Added support for specifying include filter patterns.

An optional second argument may now be passed to the "Include" configuration
option. If specified (and if the fnmatch() function was available at build
time), only files matching this pattern will be included. For example, the
following will include all files matching "*.conf" in any subdirectory of
/etc/collectd.d/:

  Include "/etc/collectd.d" "*.conf"

This is useful, e.g. for distributions in order to include a possibly empty
directory in the default configuration including all subdirectories but also
making it possible to ship further documents like README files.
configure.in
src/collectd.conf.pod
src/configfile.c