hashmap: add comment explaining that set_fnmatch() handles fnmatch() errors as non-matches

This commit is contained in:
Lennart Poettering
2022-08-31 15:13:42 +02:00
parent a7614fbe85
commit 8812f8fc65
+2
View File
@@ -2079,6 +2079,8 @@ static bool set_fnmatch_one(Set *patterns, const char *needle) {
assert(needle);
/* Any failure of fnmatch() is treated as equivalent to FNM_NOMATCH, i.e. as non-matching pattern */
SET_FOREACH(p, patterns)
if (fnmatch(p, needle, 0) == 0)
return true;