chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b4a833
)
basic: pass flags to the fnmatch (#3606)
author
Evgeny Vereshchagin
<evvers@ya.ru>
Mon, 27 Jun 2016 12:47:37 +0000
(15:47 +0300)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:13:01 +0000
(10:13 +0200)
Fixes:
```
$ systemctl list-unit-files 'hey\*'
0 unit files listed.
$ systemctl list-unit-files | grep hey
hey\x7eho.service static
```
src/basic/strv.c
patch
|
blob
|
history
diff --git
a/src/basic/strv.c
b/src/basic/strv.c
index ba4d697b106959cc6054992ad11c7f374bb564a5..87b11d00dc1eeca3eb80b9377ce8fceefc6ada71 100644
(file)
--- 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;