Module: check_mk
Branch: master
Commit: feed0db30dd55a5e53be8266a013d5e2e9e66662
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=feed0db30dd55a…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Wed Mar 7 13:54:52 2018 +0100
Win-agent: use std::regex_match for globmatch
* Convert glob wildcards '?' and '*' to their regex counterparts
'.'
and '.*'.
* Escape regex special characters present in glob pattern.
* Use std::regex_match.
* Note: glob character classes [...] are not supported (this was the
case also before.
---
agents/windows/Configuration.cc | 7 +-
agents/windows/build_version | 2 +-
agents/windows/sections/SectionFileinfo.cc | 2 +-
agents/windows/sections/SectionLogwatch.cc | 5 +-
agents/windows/sections/SectionPluginGroup.cc | 8 +-
agents/windows/stringutil.cc | 100 +++---------
agents/windows/stringutil.h | 92 ++++++++++-
agents/windows/test/stringutilTest.cc | 212 ++++++++++++++++++++++++++
8 files changed, 334 insertions(+), 94 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=feed0db30d…