aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-01-07 20:37:43 -0500
committerTimo Teräs <timo.teras@iki.fi>2020-02-18 16:12:42 +0200
commita23f51dba2106da6e1cedc98dbd96ee58cd8769f (patch)
tree7933d02859c69240a3cab7ab383e6d8431b2f512
parent1bd023ab072db0bbc5e5fe7fe8b23713697a0336 (diff)
downloadapk-tools-a23f51dba2106da6e1cedc98dbd96ee58cd8769f.tar.bz2
apk-tools-a23f51dba2106da6e1cedc98dbd96ee58cd8769f.tar.xz
database.c: drop GNU extension for fnmatch
The non-wildcard version of the function is case-sensitive anyway. (cherry picked from commit 7e2e440d4c7c51bff3ffb83ad3fd29d7b6088e32)
-rw-r--r--src/database.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c
index bbf6327..834695a 100644
--- a/src/database.c
+++ b/src/database.c
@@ -2950,7 +2950,7 @@ static int match_names(apk_hash_item item, void *pctx)
}
foreach_array_item(pmatch, ctx->filter) {
- if (fnmatch(*pmatch, name->name, FNM_CASEFOLD) == 0) {
+ if (fnmatch(*pmatch, name->name, 0) == 0) {
ctx->cb(ctx->db, *pmatch, name, ctx->cb_ctx);
if (genid)
break;