diff options
author | Timo Teräs <timo.teras@iki.fi> | 2023-03-06 21:37:29 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2023-03-06 21:39:48 +0200 |
commit | 42141acc64f4e3be596a6a4a239aba4a78420588 (patch) | |
tree | 3d14db9c2bc0c7532e2805c649699f6507e715b9 /src/app_search.c | |
parent | bd3e2be64d1118cb07ec1ecd82ca4abd2ad9ae96 (diff) | |
download | apk-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/app_search.c')
-rw-r--r-- | src/app_search.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app_search.c b/src/app_search.c index 1dcb7b6..ab51d6d 100644 --- a/src/app_search.c +++ b/src/app_search.c @@ -118,8 +118,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; |