author | Florian Forster <octo@noris.net> | |
Thu, 21 Aug 2008 07:26:21 +0000 (09:26 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Thu, 21 Aug 2008 07:26:21 +0000 (09:26 +0200) | ||
commit | 0f77b589fdee440b959887673c3cd6ed244c215a | |
tree | ce164e93bd740dd1f66fbe687afb62fc36070c5e | tree | snapshot |
parent | 9d682b256a32bf2d88d3b32eb89e71623fdc83b3 | commit | diff |
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.
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 | diff | blob | history | |
src/Makefile.am | diff | blob | history | |
src/unixsock.c | diff | blob | history | |
src/utils_cmd_flush.c | diff | blob | history | |
src/utils_cmd_flush.h | diff | blob | history | |
src/utils_parse_option.c | [new file with mode: 0644] | blob |
src/utils_parse_option.h | [new file with mode: 0644] | blob |