Code

unixsock plugin et alii: Allow passing of arbitrary identifiers to the FLUSH command.
authorFlorian Forster <octo@noris.net>
Thu, 21 Aug 2008 07:26:21 +0000 (09:26 +0200)
committerFlorian Forster <octo@noris.net>
Thu, 21 Aug 2008 07:26:21 +0000 (09:26 +0200)
commit0f77b589fdee440b959887673c3cd6ed244c215a
treece164e93bd740dd1f66fbe687afb62fc36070c5e
parent9d682b256a32bf2d88d3b32eb89e71623fdc83b3
unixsock plugin et alii: Allow passing of arbitrary identifiers to the FLUSH command.

Due to a bug in the parsing of the FLUSH command, identifiers which
contained spaces would not be accepted. This patch introduces
src/utils_parse_option.[ch], which strips off an option in the form of
name="value" from the beginning of a buffer (removing leading and
trailing spaces) and returns the values found.

The Collectd::Unixsock module is updated to automatically quote
identifiers when necessary.

Many other commands may be effected by this bug, too. They'll be fixed
soon.
bindings/perl/Collectd/Unixsock.pm
src/Makefile.am
src/unixsock.c
src/utils_cmd_flush.c
src/utils_cmd_flush.h
src/utils_parse_option.c [new file with mode: 0644]
src/utils_parse_option.h [new file with mode: 0644]