https://bugs.gentoo.org/791733 --- a/locks.c +++ b/locks.c @@ -233,7 +233,7 @@ bool cLockItem::MatchPattern(const char* aName) else if (searchMode == smExact) return strcmp(pattern, aName) == 0; else if (searchMode == smInclude) - return strstr(aName, pattern) > 0; + return strstr(aName, pattern) != 0; else if (searchMode == smStartWith) return strstr(aName, pattern) == aName;