diff options
author | unknown <serg@serg.mylan> | 2003-07-22 22:21:23 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2003-07-22 22:21:23 +0200 |
commit | 1cf4eea19d870f9e6fe147ec36b7df0eef1514cf (patch) | |
tree | 0eec29de18641195250ca526517244f6f0b0e820 /mysys/mf_wfile.c | |
parent | b413e5c420c3cdb32b519f67aaacf7ad1126d71e (diff) | |
download | mariadb-git-1cf4eea19d870f9e6fe147ec36b7df0eef1514cf.tar.gz |
now GRANT db.* ... compares patterns correctly to prevent privilege escalation
Diffstat (limited to 'mysys/mf_wfile.c')
-rw-r--r-- | mysys/mf_wfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/mf_wfile.c b/mysys/mf_wfile.c index 3c10de1f238..b964d7ee494 100644 --- a/mysys/mf_wfile.c +++ b/mysys/mf_wfile.c @@ -99,7 +99,7 @@ int wf_test(register WF_PACK *wf_pack, register const char *name) not_pos=wf_pack->not_pos; for (i=0 ; i < not_pos; i++) - if (wild_compare(name,wf_pack->wild[i]) == 0) + if (wild_compare(name,wf_pack->wild[i],0) == 0) goto found; if (i) DBUG_RETURN(1); /* No-match */ @@ -108,7 +108,7 @@ found: /* Test that it isn't in not-list */ for (i=not_pos ; i < wf_pack->wilds; i++) - if (wild_compare(name,wf_pack->wild[i]) == 0) + if (wild_compare(name,wf_pack->wild[i],0) == 0) DBUG_RETURN(1); DBUG_RETURN(0); } /* wf_test */ |