summaryrefslogtreecommitdiff
path: root/src/app_search.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-04-11 20:55:13 +0300
commit84e0e00805aca0530a8891975a8a04390df8945c (patch)
treeb3e225b150c67340217af4407735dc426a1b3800 /src/app_search.c
parent58fa82642e1a155e92a218a58753974587b3b956 (diff)
downloadapk-tools-84e0e00805aca0530a8891975a8a04390df8945c.tar.gz
apk-tools-84e0e00805aca0530a8891975a8a04390df8945c.tar.bz2
apk-tools-84e0e00805aca0530a8891975a8a04390df8945c.tar.xz
apk-tools-84e0e00805aca0530a8891975a8a04390df8945c.zip
db: case insensitive searches
fixes #10871
Diffstat (limited to 'src/app_search.c')
-rw-r--r--src/app_search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app_search.c b/src/app_search.c
index 6b27620..db4c398 100644
--- a/src/app_search.c
+++ b/src/app_search.c
@@ -117,8 +117,8 @@ static void print_result_pkg(struct search_ctx *ctx, struct apk_package *pkg)
if (ctx->search_description) {
foreach_array_item(pmatch, ctx->filter) {
- if (fnmatch(*pmatch, pkg->description, 0) == 0 ||
- fnmatch(*pmatch, pkg->name->name, 0) == 0)
+ if (fnmatch(*pmatch, pkg->description, FNM_CASEFOLD) == 0 ||
+ fnmatch(*pmatch, pkg->name->name, FNM_CASEFOLD) == 0)
goto match;
}
return;