From: Evgeny Vereshchagin Date: Mon, 27 Jun 2016 12:47:37 +0000 (+0300) Subject: basic: pass flags to the fnmatch (#3606) X-Git-Tag: v231.3~86 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=8d86b2ddd83a16dca37106862fd8858d7103c237;p=elogind.git basic: pass flags to the fnmatch (#3606) Fixes: ``` $ systemctl list-unit-files 'hey\*' 0 unit files listed. $ systemctl list-unit-files | grep hey hey\x7eho.service static ``` --- diff --git a/src/basic/strv.c b/src/basic/strv.c index ba4d697b1..87b11d00d 100644 --- a/src/basic/strv.c +++ b/src/basic/strv.c @@ -847,7 +847,7 @@ bool strv_fnmatch(char* const* patterns, const char *s, int flags) { char* const* p; STRV_FOREACH(p, patterns) - if (fnmatch(*p, s, 0) == 0) + if (fnmatch(*p, s, flags) == 0) return true; return false;