Re: [libvirt] [PATCH v2] log: actually do substring matches with fnmatch

2018-05-16 Thread Erik Skultety
On Wed, May 16, 2018 at 12:17:16PM +0100, Daniel P. Berrangé wrote: > Historically we matched log filters with strstr(), and when switching to > fnmatch in cbb0fd3cfdc287f6f4653ef1f04a7cfb2ea51b27, it was stated that > we would continue to match substrings, with "foo" being equivalent to >

[libvirt] [PATCH v2] log: actually do substring matches with fnmatch

2018-05-16 Thread Daniel P . Berrangé
Historically we matched log filters with strstr(), and when switching to fnmatch in cbb0fd3cfdc287f6f4653ef1f04a7cfb2ea51b27, it was stated that we would continue to match substrings, with "foo" being equivalent to "*foo*". Unfortuntely I forget to provide the code to actually make that happen.