author | Sebastian Harl <sh@tokkee.org> | |
Wed, 24 Aug 2011 16:26:12 +0000 (18:26 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 29 Aug 2011 13:17:12 +0000 (09:17 -0400) | ||
commit | ee8d2556d47139e04e8ace20b2fb383bec545a7b | |
tree | a22222b03f9e1f2b9aa29e4f3bccd9dd8f2bfa93 | tree | snapshot |
parent | f4c495df1843f5e87f16d122fdc78531ceb2773d | commit | diff |
processes plugin: Fixed handling of ProcessMatch regexes containing spaces.
Previously, something like 'ProcessMatch name "My Regex"' would have been
interpreted as three values. This was caused by using the old, non-complex
config interface which joins all config values using a space and passing the
resulting string to the plugin. The processes plugin used to use strsplit() to
re-gain a list of all values, obviously ignoring any quoting that might exist.
This has been fixed by using the complex config interface, which passes all
values as an array of strings and thus honoring the quoting handled by
liboconfig.
Previously, something like 'ProcessMatch name "My Regex"' would have been
interpreted as three values. This was caused by using the old, non-complex
config interface which joins all config values using a space and passing the
resulting string to the plugin. The processes plugin used to use strsplit() to
re-gain a list of all values, obviously ignoring any quoting that might exist.
This has been fixed by using the complex config interface, which passes all
values as an array of strings and thus honoring the quoting handled by
liboconfig.
src/processes.c | diff | blob | history |