chiark / gitweb /
basic: pass flags to the fnmatch (#3606)
[elogind.git] / src / basic / strv.c
index ba4d697b106959cc6054992ad11c7f374bb564a5..87b11d00dc1eeca3eb80b9377ce8fceefc6ada71 100644 (file)
@@ -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;