summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2023-03-06 21:37:29 +0200
committerTimo Teräs <timo.teras@iki.fi>2023-03-06 21:39:48 +0200
commit42141acc64f4e3be596a6a4a239aba4a78420588 (patch)
tree3d14db9c2bc0c7532e2805c649699f6507e715b9 /src/database.c
parentbd3e2be64d1118cb07ec1ecd82ca4abd2ad9ae96 (diff)
downloadapk-tools-42141acc64f4e3be596a6a4a239aba4a78420588.tar.gz
apk-tools-42141acc64f4e3be596a6a4a239aba4a78420588.tar.bz2
apk-tools-42141acc64f4e3be596a6a4a239aba4a78420588.tar.xz
apk-tools-42141acc64f4e3be596a6a4a239aba4a78420588.zip
db: case insensitive searches
fixes #10871
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c
index e8865b1..bc25683 100644
--- a/src/database.c
+++ b/src/database.c
@@ -3123,7 +3123,7 @@ static int apk_string_match(const char *str, struct apk_string_array *filter, co
char **pmatch;
foreach_array_item(pmatch, filter) {
- if (fnmatch(*pmatch, str, 0) == 0) {
+ if (fnmatch(*pmatch, str, FNM_CASEFOLD) == 0) {
*res = *pmatch;
return 1;
}