diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2016-06-27 15:47:37 +0300 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2016-06-27 14:47:37 +0200 |
commit | 2027927b1002a74d24300704a655614f8ea48e45 (patch) | |
tree | 6d11bcf50cd8a1b5a40b6cab488996203bfe4e94 /src/basic | |
parent | bed48d665599fca9ac44f3bb330087c80edb01c7 (diff) |
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
```
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/strv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/strv.c b/src/basic/strv.c index 578a9c1005..4e8153421a 100644 --- a/src/basic/strv.c +++ b/src/basic/strv.c @@ -834,7 +834,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; |